Explorar o código

add null option to assign

soumaeda %!s(int64=2) %!d(string=hai) anos
pai
achega
0622493167
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/app/src/components/PageEditor/DrawioModal.tsx

+ 1 - 1
apps/app/src/components/PageEditor/DrawioModal.tsx

@@ -53,7 +53,7 @@ export const DrawioModal = (): JSX.Element => {
   const { data: drawioModalDataInEditor } = useDrawioModalForEditor();
   const isOpened = drawioModalData?.isOpened ?? false;
   const isOpendInEditor = drawioModalDataInEditor?.isOpened ?? false;
-  const editorKey = drawioModalDataInEditor?.editorKey;
+  const editorKey = drawioModalDataInEditor?.editorKey ?? null;
   const { data: codeMirrorEditor } = useCodeMirrorEditorIsolated(editorKey);
   const editor = codeMirrorEditor?.view;