mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
parent
0264b32886
commit
6349262332
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ export function getEl(path: string, plugin: FolderNotesPlugin | FolderOverviewPl
|
|||
if (!fileExplorer) { return null; }
|
||||
if (!fileExplorer.view) { return null; }
|
||||
if (!fileExplorer.view.fileItems) { return null; }
|
||||
const fileExplorerItem = fileExplorer.view.fileItems[path];
|
||||
const fileExplorerItem = fileExplorer.view.fileItems?.[path];
|
||||
if (!fileExplorerItem) { return null; }
|
||||
if (fileExplorerItem.selfEl) return fileExplorerItem.selfEl;
|
||||
return fileExplorerItem.titleEl;
|
||||
|
|
|
|||
Loading…
Reference in a new issue