Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
avoid redundant checks
jamesgeorge00720a8296cd5eb
diff --git a/pages/index.vue b/pages/index.vueindex 0aee73ea4..6a32925be 100644--- a/pages/index.vue+++ b/pages/index.vue@@ -965,7 +965,7 @@setRouteQueries(queries) {if (typeof (queries) !== 'object') throw new Error('Route query parameters must be a Object')for (const key in queries) {- if (key === 'headers' || key === 'params' || key === 'bodyParams') this[key] = JSON.parse(queries[key])+ if (['headers', 'params', 'bodyParams'].includes(key)) this[key] = JSON.parse(queries[key])if (key === 'rawParams') {this.rawInput = truethis.rawParams = queries['rawParams']