Skip to content

Commit

Permalink
Fix absolute file path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
blindmansion committed Sep 8, 2024
1 parent a53cae7 commit 9dd6ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cannoli-plugin/src/vault_interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ export class VaultInterface implements FileManager {
return `# ${reference.name}\nMock note content`;
}

// If the note is formatted with the path, get rid of the path and just use the note name
// If the note is formatted with the path, get rid of the display name and just use the path
if (reference.name.includes("|")) {
reference.name = reference.name.split("|")[1];
reference.name = reference.name.split("|")[0];
}

// Get the file
Expand Down

0 comments on commit 9dd6ec3

Please sign in to comment.