mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
small fixes for collapse/expand
This commit is contained in:
@@ -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});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user