fix recent notes issues

This commit is contained in:
azivner
2018-06-06 22:38:36 -04:00
parent aee60c444f
commit 0e69f0c079
4 changed files with 39 additions and 53 deletions

View File

@@ -52,6 +52,15 @@ async function getNotePathTitle(notePath) {
const titlePath = [];
if (notePath.startsWith('root/')) {
notePath = notePath.substr(5);
}
// special case when we want just root's title
if (notePath === 'root') {
return await getNoteTitle(notePath);
}
let parentNoteId = 'root';
for (const noteId of notePath.split('/')) {