fix: fix canListParameter (undefined) to canListParameters

This commit is contained in:
Leonardo Matos
2020-03-20 15:56:29 -03:00
committed by GitHub
parent dc771f51e8
commit 9a4e64e13f

View File

@@ -1434,8 +1434,8 @@ export default {
}, },
canListParameters: { canListParameters: {
immediate: true, immediate: true,
handler (canToggleRaw) { handler (canListParameters) {
this.rawInput = !canToggleRaw this.rawInput = !canListParameters
} }
}, },
contentType(contentType, oldContentType) { contentType(contentType, oldContentType) {
@@ -1764,7 +1764,7 @@ export default {
}, },
rawInput: { rawInput: {
get() { get() {
return this.canListParameter ? this.$store.state.request.rawInput : true return this.canListParameters ? this.$store.state.request.rawInput : true
}, },
set(value) { set(value) {
this.$store.commit("setState", { value, attribute: "rawInput" }) this.$store.commit("setState", { value, attribute: "rawInput" })