mirror of
https://github.com/ozntel/oz-calendar.git
synced 2026-07-22 07:40:24 +00:00
File Obtain Method Correction
This commit is contained in:
parent
959cfe3f7b
commit
54241bbee2
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue