From bef281feb89c41ef571686e1d0d30906145d4132 Mon Sep 17 00:00:00 2001 From: "av.maiorov" Date: Tue, 20 Dec 2022 11:23:56 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=20=D1=81=D1=82=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D1=86=D0=B5=20"=D0=9E=D0=BF=D0=B5=D1=80=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D0=B8"=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=20?= =?UTF-8?q?=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=20=D0=BF=D0=BE=D0=BB=D1=83=D1=87?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BA=D0=B0=D1=82=D0=B5=D0=B3=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=B9=20=D0=BE=D0=BF=D0=B5=D1=80=D0=B0=D1=86=D0=B8?= =?UTF-8?q?=D0=B9.=20(Upd)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Well/Telemetry/Operations/index.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/Well/Telemetry/Operations/index.jsx b/src/pages/Well/Telemetry/Operations/index.jsx index fca16f6..3d3748e 100644 --- a/src/pages/Well/Telemetry/Operations/index.jsx +++ b/src/pages/Well/Telemetry/Operations/index.jsx @@ -8,7 +8,7 @@ import { DateRangeWrapper } from '@components/Table' import { invokeWebApiWrapperAsync } from '@components/factory' import { unique } from '@utils/filters' import { getPermissions, arrayOrDefault, range, withPermissions, prettify } from '@utils' -import { DetectedOperationService, DrillerService, TelemetryDataSaubService } from '@api' +import { DetectedOperationService, DrillerService, TelemetryDataSaubService, WellOperationService } from '@api' import DrillerList from './DrillerList' import TargetEditor from './TargetEditor' @@ -26,7 +26,7 @@ const Operations = memo(() => { const [data, setData] = useState({}) const [drillers, setDrillers] = useState([]) const [drillersLoader, setDrillersLoader] = useState(false) - const [selectedCategory, setSelectedCategory] = useState(14) + const [selectedCategory, setSelectedCategory] = useState(5011) const [categories, setCategories] = useState() const [well] = useWell() @@ -78,7 +78,7 @@ const Operations = memo(() => { useEffect(() => { invokeWebApiWrapperAsync( async () => { - const categories = arrayOrDefault(await DetectedOperationService.getCategories()) + const categories = arrayOrDefault(await WellOperationService.getCategories(well.id)) setCategories(categories.map((category) => ({ ...category, value: category.id,