Skip to content

Commit

Permalink
Fix backlinks API
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaoumov committed Nov 3, 2024
1 parent 3312cc6 commit 1717c94
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"monkey-around": "^3.0.0",
"npm-run-all": "^4.1.5",
"obsidian": "^1.7.2",
"obsidian-typings": "^2.2.1-beta.36",
"obsidian-typings": "^2.2.1-beta.38",
"path-browserify": "^1.0.1",
"preact": "^10.24.3",
"tsx": "^4.19.1",
Expand Down
2 changes: 1 addition & 1 deletion src/obsidian/Vault.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export async function deleteSafe(app: App, pathOrFile: PathOrAbstractFile, delet
if (isFile(file)) {
const backlinks = await getBacklinksForFileSafe(app, file);
if (deletedNotePath) {
backlinks.removeKey(deletedNotePath);
backlinks.clear(deletedNotePath);
}
if (backlinks.count() !== 0) {
if (shouldReportUsedAttachments) {
Expand Down

0 comments on commit 1717c94

Please sign in to comment.