Skip to content

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

fix: fix `canListParameter` (undefined) to `canListParameters`

Leonardo Matos9a4e64e13f5c
diff --git a/pages/index.vue b/pages/index.vue
index 35a01acaf..a9541abf0 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1434,8 +1434,8 @@ export default {
},
canListParameters: {
immediate: true,
- handler (canToggleRaw) {
- this.rawInput = !canToggleRaw
+ handler (canListParameters) {
+ this.rawInput = !canListParameters
}
},
contentType(contentType, oldContentType) {
@@ -1764,7 +1764,7 @@ export default {
},
rawInput: {
get() {
- return this.canListParameter ? this.$store.state.request.rawInput : true
+ return this.canListParameters ? this.$store.state.request.rawInput : true
},
set(value) {
this.$store.commit("setState", { value, attribute: "rawInput" })