[AURORA-1043] - передача ССП списком
This commit is contained in:
parent
ef335cf107
commit
75f810da07
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user