Skip to content

Commit

Permalink
Load cache from newPath
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaoumov committed Nov 26, 2024
1 parent 1a5baac commit 308cf1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/obsidian/RenameDeleteHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ async function fillRenameMap(app: App, oldPath: string, newPath: string, renameM
const oldAttachmentFiles: TFile[] = [];

if (!(await hasOwnAttachmentFolder(app, oldPath))) {
const oldCache = await getCacheSafe(app, oldPath);
const oldCache = await getCacheSafe(app, newPath);
if (!oldCache) {
return;
}
Expand Down

0 comments on commit 308cf1b

Please sign in to comment.