diff --git a/src/pages/Well/Telemetry/Operations/TargetEditor.jsx b/src/pages/Well/Telemetry/Operations/TargetEditor.jsx index dc1dfd1..d16059d 100644 --- a/src/pages/Well/Telemetry/Operations/TargetEditor.jsx +++ b/src/pages/Well/Telemetry/Operations/TargetEditor.jsx @@ -4,7 +4,7 @@ import { Button, Modal } from 'antd' import { useWell } from '@asb/context' import { invokeWebApiWrapperAsync } from '@components/factory' import { EditableTable, makeGroupColumn, makeNumericColumn, makeNumericRender, makeSelectColumn } from '@components/Table' -import { DetectedOperationService, OperationValueService } from '@api' +import { WellOperationService, OperationValueService } from '@api' import { arrayOrDefault } from '@utils' const columnOptions = { @@ -62,7 +62,7 @@ export const TargetEditor = memo(({ loading, onChange }) => { useEffect(() => { invokeWebApiWrapperAsync( async () => { - const categories = arrayOrDefault(await DetectedOperationService.getCategories()) + const categories = arrayOrDefault(await WellOperationService.getCategories(well.id)) const options = categories.map(({ id, name }) => ({ value: id, label: name })) setTargetColumns([