diff --git a/src/main.ts b/src/main.ts index c1c296b..bbb9d4c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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); } }