We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98af9b1 commit e70f811Copy full SHA for e70f811
1 file changed
apps/obsidian/src/components/ModifyNodeModal.tsx
@@ -85,7 +85,8 @@ export const ModifyNodeForm = ({
85
string | undefined
86
>(undefined);
87
const hasEditorContext =
88
- plugin.app.workspace.activeLeaf?.view instanceof MarkdownView;
+ !!plugin.app.workspace.getActiveViewOfType(MarkdownView);
89
+ console.log("hasEditorContext", hasEditorContext);
90
const [insertBacklink, setInsertBacklink] = useState(!!initialTitle);
91
const queryEngine = useRef(new QueryEngine(plugin.app));
92
const titleInputRef = useRef<HTMLTextAreaElement>(null);
0 commit comments