@@ -68,7 +68,6 @@ export const CodeMirrorEditorReadOnly = ({ markdown, onScroll }: Props): JSX.Ele
hideToolbar
editorKey={GlobalCodeMirrorEditorKey.READONLY}
onScroll={onScroll}
- cmProps={{}} // Do not pass undefined when initializing useCodeMirrorEditorIsolated
/>
);
};
@@ -33,7 +33,7 @@ export const useCodeMirrorEditorIsolated = (
const newData = useCodeMirrorEditor(mergedProps);
- const shouldUpdate = swrKey != null && container != null && props != null && (
+ const shouldUpdate = swrKey != null && container != null && (
currentData == null
|| (isValid(newData) && !isDeepEquals(currentData, newData))