Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyloong committed Sep 20, 2024
1 parent f7d9655 commit 54a5e3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"author": "lazyloong",

"minAppVersion": "1.0.0",
"version": "2.27.1"
"version": "2.27.2"
}
2 changes: 1 addition & 1 deletion src/modal/templatesModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default class TemplatesModal extends FuzzyModal<Item> {
let folder = plugin.options.folder;
let templateFiles = this.app.vault
.getFiles()
.filter((file) => file.parent.path === folder && file.extension === "md");
.filter((file) => file.path.startsWith(folder) && file.extension === "md");

this.index.items = templateFiles.map((file: TFile) => ({
name: file.basename,
Expand Down

0 comments on commit 54a5e3b

Please sign in to comment.