mirror of
https://github.com/zadam/trilium.git
synced 2024-09-20 07:35:59 +08:00
if a note context has sub contexts, then it has to be saved even if empty, fixes #3985
This commit is contained in:
parent
375dba3264
commit
d26a0fae17
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue