Explorar el Código

133085 remove undefined

soumaeda hace 2 años
padre
commit
731a80348c

+ 1 - 1
packages/editor/src/services/codemirror-editor/use-codemirror-editor/utils/insert-header.ts

@@ -34,6 +34,6 @@ export const useInsertHeader = (view?: EditorView): InsertHeader => {
       },
       },
       selection: { anchor: cursorPos + insertText.length },
       selection: { anchor: cursorPos + insertText.length },
     });
     });
-    view?.focus();
+    view.focus();
   }, [view]);
   }, [view]);
 };
 };