small fixes for collapse/expand

This commit is contained in:
zadam
2020-05-03 13:52:12 +02:00
parent 2a3091f788
commit 43e12fbea2
4 changed files with 13 additions and 6 deletions

View File

@@ -606,7 +606,9 @@ export default class NoteTreeWidget extends TabAwareWidget {
await this.batchUpdate(async () => {
await node.load(true);
await node.setExpanded(isExpanded, {noEvents: true});
if (node.data.noteId !== 'root') { // root is always expanded
await node.setExpanded(isExpanded, {noEvents: true});
}
});
}