Fix parent folder path storage option on first lvl

This commit is contained in:
Lost Paul 2025-01-28 19:37:47 +01:00
parent faa86db7d6
commit 3acfba425e

View file

@ -280,11 +280,10 @@ export function getFolderNote(plugin: FolderNotesPlugin, folderPath: string, sto
folder.path = getFolderPathFromString(folderPath);
}
let path = `${folder.path}/${fileName}`;
if (folder.path.trim() === '') {
folder.path = fileName;
path = `${fileName}`;
}
folder.path == '/' ? path = fileName : path = `${folder.path}/${fileName}`;
let folderNoteType = plugin.settings.folderNoteType;
if (folderNoteType === '.excalidraw') {