Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

Merge remote-tracking branch 'origin/feature/fix-gql-state' into feature/fix-gql-state

Dmitry Yankowski8e9d6ae0848d
diff --cc store/mutations.js
index 9a229291a,a978c957f..a67a3eb69
--- a/store/mutations.js
+++ b/store/mutations.js
@@@ -4,9 -4,9 +4,15 @@@ export default
},
setGQLState({ gql }, { attribute, value }) {
- gql[attribute] = value;
+ gql[attribute] = value
+ },
+
++ setCollapsedSection({ theme }, value) {
++ theme.collapsedSections.includes(value)
++ ? (theme.collapsedSections = theme.collapsedSections.filter(section => section !== value))
++ : theme.collapsedSections.push(value)
+ },
+
setCollapsedSection({ theme }, value) {
theme.collapsedSections.includes(value)
? (theme.collapsedSections = theme.collapsedSections.filter(section => section !== value))