diff --git a/store/mutations.js b/store/mutations.js index 9a229291a..a67a3eb69 100644 --- a/store/mutations.js +++ b/store/mutations.js @@ -13,6 +13,12 @@ export default { : theme.collapsedSections.push(value) }, + setCollapsedSection({ theme }, value) { + theme.collapsedSections.includes(value) + ? (theme.collapsedSections = theme.collapsedSections.filter(section => section !== value)) + : theme.collapsedSections.push(value) + }, + addGQLHeader({ gql }, object) { gql.headers.push(object) },