mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Fix parent folder path storage option on first lvl
This commit is contained in:
parent
faa86db7d6
commit
3acfba425e
1 changed files with 3 additions and 4 deletions
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue