Skip to content

Commit

Permalink
fix: create an omnivore file for an existing TFolder
Browse files Browse the repository at this point in the history
  • Loading branch information
sywhb committed Feb 19, 2023
1 parent e7f8fff commit b7768ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export default class OmnivorePlugin extends Plugin {
if (existingContent !== content) {
await this.app.vault.modify(omnivoreFile, content);
}
} else {
} else if (!omnivoreFile) {
await this.app.vault.create(normalizedPath, content);
}
}
Expand Down

0 comments on commit b7768ff

Please sign in to comment.