Skip to content

Commit

Permalink
fix notes not created in root folder
Browse files Browse the repository at this point in the history
  • Loading branch information
dartungar committed Jun 8, 2024
1 parent 43e49e4 commit b5eec92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/filesIntegration/createFileModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit b5eec92

Please sign in to comment.