From 75f810da0703fd7b93dcd13fe33d1566b6d950d1 Mon Sep 17 00:00:00 2001 From: Veronika Tsygankova Date: Mon, 8 Jun 2026 16:47:09 +0300 Subject: [PATCH] =?UTF-8?q?[AURORA-1043]=20-=20=D0=BF=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D0=B4=D0=B0=D1=87=D0=B0=20=D0=A1=D0=A1=D0=9F=20=D1=81=D0=BF?= =?UTF-8?q?=D0=B8=D1=81=D0=BA=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/pages/TasksPage/TasksPage.jsx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/web/src/pages/TasksPage/TasksPage.jsx b/web/src/pages/TasksPage/TasksPage.jsx index 2602436..fb18a99 100644 --- a/web/src/pages/TasksPage/TasksPage.jsx +++ b/web/src/pages/TasksPage/TasksPage.jsx @@ -110,15 +110,11 @@ export default function TasksPage() { try { setLoadingUpdate(true); - await Promise.all( - formData.org_unit_id.map((orgUnitId) => - TasksApi.create({ - year: Number(formData.year), - form_type_code: formData.formTypeCode, - org_unit_id: orgUnitId, - }), - ), - ); + await TasksApi.create({ + year: Number(formData.year), + form_type_code: formData.formTypeCode, + org_unit_ids: formData.org_unit_id, + }); setPage(1); loadTasks(1, limit);