fix creating branch without isExpanded, fixes initial document initialization

This commit is contained in:
zadam 2019-10-31 22:02:55 +01:00
parent 1a182d1b58
commit f1a7fce277

View File

@ -45,6 +45,10 @@ class Branch extends Entity {
this.notePosition = maxNotePos === null ? 0 : maxNotePos + 10; this.notePosition = maxNotePos === null ? 0 : maxNotePos + 10;
} }
if (!this.isExpanded) {
this.isExpanded = false;
}
if (!this.isDeleted) { if (!this.isDeleted) {
this.isDeleted = false; this.isDeleted = false;
} }