[AURORA-1043] - передача ССП списком

This commit is contained in:
Veronika Tsygankova 2026-06-08 16:47:09 +03:00
parent ef335cf107
commit 75f810da07

View File

@ -110,15 +110,11 @@ export default function TasksPage() {
try { try {
setLoadingUpdate(true); setLoadingUpdate(true);
await Promise.all( await TasksApi.create({
formData.org_unit_id.map((orgUnitId) =>
TasksApi.create({
year: Number(formData.year), year: Number(formData.year),
form_type_code: formData.formTypeCode, form_type_code: formData.formTypeCode,
org_unit_id: orgUnitId, org_unit_ids: formData.org_unit_id,
}), });
),
);
setPage(1); setPage(1);
loadTasks(1, limit); loadTasks(1, limit);