From b7768ffed335baec2eb841aeaffd283573a14c8d Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Sun, 19 Feb 2023 08:51:50 +0800 Subject: [PATCH] fix: create an omnivore file for an existing TFolder --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }