Skip to content

Commit 5fe7971

Browse files
committed
⚡ If only 1 section set, then expand on load
1 parent e971a0b commit 5fe7971

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/Workspace/SideBar.vue

+5-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ export default {
7171
},
7272
},
7373
mounted() {
74-
this.openDefaultSection();
74+
if (this.sections.length === 1) { // If only 1 section, go ahead and open it
75+
this.openSection(0);
76+
} else { // Otherwise, see if user set a default section, and open that
77+
this.openDefaultSection();
78+
}
7579
},
7680
};
7781
</script>

0 commit comments

Comments
 (0)