From 54241bbee29223d8333d7f44a80bfec674d88d5c Mon Sep 17 00:00:00 2001 From: Ozan Tellioglu Date: Sun, 12 Mar 2023 13:11:41 +0100 Subject: [PATCH] File Obtain Method Correction --- src/components/noteList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/noteList.tsx b/src/components/noteList.tsx index d829e7f..8868244 100644 --- a/src/components/noteList.tsx +++ b/src/components/noteList.tsx @@ -36,7 +36,7 @@ export default function NoteListComponent(params: NoteListComponentParams) { }; const openFilePath = (filePath: string) => { - let abstractFile = plugin.app.metadataCache.getFirstLinkpathDest(filePath, ''); + let abstractFile = plugin.app.vault.getAbstractFileByPath(filePath); if (abstractFile) { openFile({ file: abstractFile as TFile,