Skip to content

Commit 787d0fa

Browse files
Change getAllLoadedFiles to getAbstractFileByPath
1 parent 93f3c7e commit 787d0fa

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

main.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,7 @@ export default class CanvasDailyNotePlugin extends Plugin {
231231
2,
232232
"0"
233233
)}.md`;
234-
let dailyFile = this.app.vault
235-
.getAllLoadedFiles()
236-
.find((file) => file.path === expectedNotePath);
234+
let dailyFile = this.app.vault.getAbstractFileByPath(expectedNotePath);
237235

238236
return dailyFile;
239237
}

manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"id": "canvas-dailynote",
33
"name": "Canvas Daily Note",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"minAppVersion": "0.15.0",
66
"description": "Allows you to add a daily note node to the canvas that will always show todays note.",
77
"author": "Andrew McGivery",
88
"authorUrl": "https://github.com/andrewmcgivery",
99
"fundingUrl": "https://www.buymeacoffee.com/andrewmcgivery",
1010
"isDesktopOnly": true
11-
}
11+
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-canvas-dailynote",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "A plugin for Obsidian.MD that allows you to add a daily note node to the canvas that will always show todays note.",
55
"main": "dist/main.js",
66
"scripts": {

versions.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"1.0.0": "0.15.0"
3-
}
2+
"1.0.0": "0.15.0",
3+
"1.0.1": "0.15.0"
4+
}

0 commit comments

Comments
 (0)