mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01: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…
x
Reference in New Issue
Block a user