Remove #175 error message

(and hopefully also fix the bug)
This commit is contained in:
Lost Paul 2025-04-22 20:12:50 +02:00
parent 0264b32886
commit 6349262332

View file

@ -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;