We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1962ab1 commit 2396f4fCopy full SHA for 2396f4f
src/store/state/selectors.ts
@@ -26,5 +26,6 @@ export function getEditorStateViews(state: State, stateKey: any | null): EditorV
26
const stateId = opts.transformKeyToId(stateKey);
27
if (!stateId) return [];
28
const editor = state.editor.state.editors[stateId];
29
+ if (!editor) return [];
30
return editor.viewIds.map((id) => state.editor.state.views[id].view).filter((v) => v != null);
31
}
0 commit comments