diff --git a/src/pages/AdminPanel/WellController.jsx b/src/pages/AdminPanel/WellController.jsx index bad3fa9..f788331 100644 --- a/src/pages/AdminPanel/WellController.jsx +++ b/src/pages/AdminPanel/WellController.jsx @@ -34,6 +34,7 @@ export default function WellController() { useEffect(() => invokeWebApiWrapperAsync( async () => { + await updateTable() let clusters = await AdminClusterService.getAll() clusters = clusters?.map((cluster) => ({ value: cluster.id, label: cluster.caption })) setClusters(clusters ?? []) @@ -42,8 +43,6 @@ export default function WellController() { `Не удалось загрузить список кустов` ), []) - useEffect(updateTable, []) - const handlerProps = { service: AdminWellService, setLoader: setShowLoader,