From 5fe79711bd0cf8c4d9ce8122eff0de3d2802d77a Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 10 Oct 2021 22:33:39 +0100 Subject: [PATCH] :zap: If only 1 section set, then expand on load --- src/components/Workspace/SideBar.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Workspace/SideBar.vue b/src/components/Workspace/SideBar.vue index cc81fa3bc6..94595b6e0a 100644 --- a/src/components/Workspace/SideBar.vue +++ b/src/components/Workspace/SideBar.vue @@ -71,7 +71,11 @@ export default { }, }, mounted() { - this.openDefaultSection(); + if (this.sections.length === 1) { // If only 1 section, go ahead and open it + this.openSection(0); + } else { // Otherwise, see if user set a default section, and open that + this.openDefaultSection(); + } }, };