From 63492623327da8a3fa0a5d49b8454f4c461740b5 Mon Sep 17 00:00:00 2001 From: Lost Paul <70213368+LostPaul@users.noreply.github.com> Date: Tue, 22 Apr 2025 20:12:50 +0200 Subject: [PATCH] Remove #175 error message (and hopefully also fix the bug) --- src/functions/styleFunctions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions/styleFunctions.ts b/src/functions/styleFunctions.ts index dfb0d76..a9a8cb7 100644 --- a/src/functions/styleFunctions.ts +++ b/src/functions/styleFunctions.ts @@ -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;