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