[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) => year: Number(formData.year),
TasksApi.create({ form_type_code: formData.formTypeCode,
year: Number(formData.year), org_unit_ids: formData.org_unit_id,
form_type_code: formData.formTypeCode, });
org_unit_id: orgUnitId,
}),
),
);
setPage(1); setPage(1);
loadTasks(1, limit); loadTasks(1, limit);