fixed null check
This commit is contained in:
@@ -255,7 +255,7 @@
|
|||||||
} else {
|
} else {
|
||||||
// Open in-file modal for active file
|
// Open in-file modal for active file
|
||||||
const view = app.workspace.getActiveViewOfType(MarkdownView)
|
const view = app.workspace.getActiveViewOfType(MarkdownView)
|
||||||
if (view) {
|
if (view?.file) {
|
||||||
new OmnisearchInFileModal(app, view.file, searchQuery).open()
|
new OmnisearchInFileModal(app, view.file, searchQuery).open()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user