From 27fc56fb6b3226a49699f87f3b778e7703d962e1 Mon Sep 17 00:00:00 2001 From: goodm2ice Date: Thu, 13 Jan 2022 21:01:03 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=BD=D0=B0=20=D1=81=D0=BB=D1=83=D1=87=D0=B0=D0=B9=20?= =?UTF-8?q?=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B8=20=D0=B2=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D1=81=D0=B0=D1=85=20CompanyController?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/AdminPanel/CompanyController.jsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/pages/AdminPanel/CompanyController.jsx b/src/pages/AdminPanel/CompanyController.jsx index 67596bc..0ebe59e 100644 --- a/src/pages/AdminPanel/CompanyController.jsx +++ b/src/pages/AdminPanel/CompanyController.jsx @@ -46,14 +46,20 @@ export const CompanyController = () => { ]) await updateTable() - } + }, + setShowLoader, + `Не удалось загрузить список типов компаний` ), []) const handlerProps = { service: AdminCompanyService, setLoader: setShowLoader, errorMsg: `Не удалось выполнить операцию`, - onComplete: updateTable, + onComplete: () => invokeWebApiWrapperAsync( + updateTable, + setShowLoader, + `Не удалось обновить список компаний` + ), } return (