hoisted note should be expanded after tree collapse

This commit is contained in:
zadam
2022-08-02 20:38:48 +02:00
parent 30b2d15f3d
commit 12af3d05f0
2 changed files with 36 additions and 30 deletions

View File

@@ -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});
}
});