diff --git a/frontend/src/pages/Jobs/JobForm.tsx b/frontend/src/pages/Jobs/JobForm.tsx index ef8e707..98ea05e 100644 --- a/frontend/src/pages/Jobs/JobForm.tsx +++ b/frontend/src/pages/Jobs/JobForm.tsx @@ -116,6 +116,7 @@ export function JobForm({ mode }: { mode: 'create' | 'edit' }) { const [loading, setLoading] = useState(false) const [existing, setExisting] = useState(null) const jobType = Form.useWatch('type', form) + const influxVersion = Form.useWatch('influx_version', form) useEffect(() => { storageApi.list().then(setStorages) @@ -297,7 +298,7 @@ export function JobForm({ mode }: { mode: 'create' | 'edit' }) { - {Form.useWatch('influx_version', form) === '1' ? ( + {influxVersion === '1' ? ( <>