mirror of https://github.com/laurent22/joplin.git
Cli: Fixes #2536: Fixed issue when a notebook does not have a parent
parent
c5f1f11f2d
commit
3cf3cd1598
|
@ -40,7 +40,7 @@ class FolderListWidget extends ListWidget {
|
|||
let output = 0;
|
||||
while (true) {
|
||||
const folder = BaseModel.byId(folders, folderId);
|
||||
if (!folder.parent_id) return output;
|
||||
if (!folder || !folder.parent_id) return output;
|
||||
output++;
|
||||
folderId = folder.parent_id;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue