mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 16:56:34 +01:00
hoisted note should be expanded after tree collapse
This commit is contained in:
@@ -767,7 +767,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget {
|
||||
await this.batchUpdate(async () => {
|
||||
await node.load(true);
|
||||
|
||||
if (node.data.noteId !== 'root') { // root is always expanded
|
||||
if (node.data.noteId !== hoistedNoteService.getHoistedNoteId()) { // hoisted note should be always expanded
|
||||
await node.setExpanded(isExpanded, {noEvents: true, noAnimation: true});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user