If only 1 section set, then expand on load

This commit is contained in:
Alicia Sykes 2021-10-10 22:33:39 +01:00
parent e971a0b56b
commit 5fe79711bd
1 changed files with 5 additions and 1 deletions

View File

@ -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();
}
},
};
</script>