diff --git a/frontend/src/components/Editor/index.tsx b/frontend/src/components/Editor/index.tsx index 790b99c9f9..51a024f607 100644 --- a/frontend/src/components/Editor/index.tsx +++ b/frontend/src/components/Editor/index.tsx @@ -9,6 +9,12 @@ function Editor({ value }: EditorProps): JSX.Element { value={value.current} options={{ fontSize: 16, automaticLayout: true }} height="40vh" + onChange={(newValue): void => { + if (value.current && newValue) { + // eslint-disable-next-line no-param-reassign + value.current = newValue; + } + }} /> ); }