fix exporting root note, closes #1024

This commit is contained in:
zadam
2020-05-17 21:07:54 +02:00
parent 108afe8896
commit fa5d982a55
2 changed files with 17 additions and 2 deletions

View File

@@ -162,6 +162,13 @@ function getNoteIdFromNotePath(notePath) {
}
function getNoteIdAndParentIdFromNotePath(notePath) {
if (notePath === 'root') {
return {
noteId: 'root',
parentNoteId: 'none'
};
}
let parentNoteId = 'root';
let noteId = '';
@@ -286,4 +293,4 @@ export default {
getNotePathTitle,
getHashValueFromAddress,
parseNotePath
};
};