diff --git a/manifest.json b/manifest.json index 7165865..24baf83 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "mood-tracker", "name": "Mood Tracker", - "version": "1.3.3", + "version": "1.3.4", "minAppVersion": "1.0.0", "description": "Track your moods & emotions easily. Visualize tracked history and browse the past entries.", "author": "dartungar", diff --git a/src/filesIntegration/createFileModal.ts b/src/filesIntegration/createFileModal.ts index 4e99047..0e663e2 100644 --- a/src/filesIntegration/createFileModal.ts +++ b/src/filesIntegration/createFileModal.ts @@ -12,7 +12,7 @@ export class CreateFileModal extends ConfirmationModal { const directoryPath = path.substring(0, path.lastIndexOf("/")); - if (!vault.getFolderByPath(directoryPath)) { + if (directoryPath != "" && !vault.getFolderByPath(directoryPath)) { await vault.createFolder(directoryPath); }