mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
fix collapse tree
This commit is contained in:
@@ -763,7 +763,8 @@ export default class NoteTreeWidget extends TabAwareWidget {
|
||||
|
||||
const {branchIds} = await server.put(`branches/${node.data.branchId}/expanded-subtree/${isExpanded ? 1 : 0}`);
|
||||
|
||||
treeCache.getBranches(branchIds, true).forEach(branch => branch.isExpanded = isExpanded);
|
||||
treeCache.getBranches(branchIds, true)
|
||||
.forEach(branch => branch.isExpanded = !!isExpanded);
|
||||
|
||||
await this.batchUpdate(async () => {
|
||||
await node.load(true);
|
||||
|
||||
Reference in New Issue
Block a user