Skip to content

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

refactor: destructuring assignment

jamesgeorge007ef434ca8040a
diff --git a/pages/index.vue b/pages/index.vue
index 943780b49..c1168c9c5 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1839,8 +1839,8 @@ export default {
return this.path.match(/^([^?]*)\??/)[1];
},
rawRequestBody() {
- const { bodyParams } = this;
- if (this.contentType === "application/json") {
+ const { bodyParams, contentType } = this;
+ if (contentType === "application/json") {
try {
const obj = JSON.parse(
`{${bodyParams