if a note context has sub contexts, then it has to be saved even if empty, fixes #3985

This commit is contained in:
zadam 2023-05-31 00:03:20 +02:00
parent 375dba3264
commit d26a0fae17

View file

@ -176,9 +176,12 @@ class NoteContext extends Component {
}
getTabState() {
if (!this.notePath && this.hoistedNoteId === 'root') {
if (this.hoistedNoteId !== 'root') {
// keeping empty hoisted tab is esp. important for mobile (e.g. opened launcher config)
return null;
if (!this.notePath && this.getSubContexts().length === 0) {
return null;
}
}
return {