diff --git a/src/pages/Telemetry/Operations/index.jsx b/src/pages/Telemetry/Operations/index.jsx index 2688873..8306be8 100644 --- a/src/pages/Telemetry/Operations/index.jsx +++ b/src/pages/Telemetry/Operations/index.jsx @@ -69,9 +69,17 @@ const Operations = memo(() => { useEffect(() => { invokeWebApiWrapperAsync( async () => { - const categories = arrayOrDefault(await DetectedOperationService.getCategories(idWell)) + const categories = arrayOrDefault(await DetectedOperationService.getCategories()) setCategories(categories.map(({ id, name }) => ({ value: id, label: name }))) + }, + setIsLoading, + 'Не удалось загрзуить категории операций' + ) + }, []) + useEffect(() => { + invokeWebApiWrapperAsync( + async () => { const dates = await TelemetryDataSaubService.getDataDatesRange(idWell) if (dates) { const dt = [moment(dates.from), moment(dates.to)] @@ -131,11 +139,11 @@ const Operations = memo(() => {