From da11aa0ce524b0bed12a1b3173c37250526c9f66 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Wed, 30 Oct 2019 21:03:07 +0100 Subject: [PATCH] Update useEffect dependencies array for editor component --- .../public/np_ready/application/editor/editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/legacy/plugins/searchprofiler/public/np_ready/application/editor/editor.tsx b/x-pack/legacy/plugins/searchprofiler/public/np_ready/application/editor/editor.tsx index 486bafbbe7b292..0edef447a02206 100644 --- a/x-pack/legacy/plugins/searchprofiler/public/np_ready/application/editor/editor.tsx +++ b/x-pack/legacy/plugins/searchprofiler/public/np_ready/application/editor/editor.tsx @@ -51,7 +51,7 @@ export const Editor = memo(({ licenseEnabled, initialValue, onEditorReady }: Pro setTextArea(containerRef.current!.querySelector('textarea')); onEditorReady(createEditorShim(editorInstanceRef.current)); - }, []); + }, [initialValue, onEditorReady, licenseEnabled]); return
; });