Skip to content

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

Remove duplicate code

Dmitry Yankowskie88f98418a17
diff --git a/store/mutations.js b/store/mutations.js
index a67a3eb69..9a229291a 100644
--- a/store/mutations.js
+++ b/store/mutations.js
@@ -13,12 +13,6 @@ 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)
},