Skip to content

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

refactoring

breno-pereira6c28ebe057d2
diff --git a/pages/index.vue b/pages/index.vue
index e62ca8e19..bad592150 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1531,7 +1531,8 @@ export default {
this.setRouteQueryState();
},
methodChange() {
- this.$store.commit('setState', { 'value': ["POST", "PUT", "PATCH"].includes(this.method) ? 'application/json' : '', 'attribute': 'contentType' })
+ // this.$store.commit('setState', { 'value': ["POST", "PUT", "PATCH"].includes(this.method) ? 'application/json' : '', 'attribute': 'contentType' })
+ this.contentType = ["POST", "PUT", "PATCH"].includes(this.method) ? 'application/json' : '';
}
},
mounted() {