Skip to content

Commit

Permalink
Trigger update event when file is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
brianrodri committed Feb 25, 2025
1 parent 966f228 commit 7b4d237
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index/datacore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export class Datacore extends Component {
this.vault.on("delete", (file) => {
if (file instanceof TFile) {
this.datastore.delete(file.path);
this.trigger("update", this.revision);
}
})
);
Expand Down

0 comments on commit 7b4d237

Please sign in to comment.