Skip to content

Commit 8380de2

Browse files
address review feedback
1 parent c4f44e3 commit 8380de2

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/processor_form/processors

1 file changed

+1
-1
lines changed

x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/processor_form/processors/script.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export const Script: FormFieldsComponent = ({ initialFieldValues }) => {
131131
const [showId, setShowId] = useState(() => !!initialFieldValues?.id);
132132
const [scriptLanguage, setScriptLanguage] = useState<string>('plaintext');
133133

134-
const [{ fields }] = useFormData();
134+
const [{ fields }] = useFormData({ watch: 'fields.lang' });
135135

136136
const suggestionProvider = PainlessLang.getSuggestionProvider('processor_conditional');
137137

0 commit comments

Comments
 (0)