diff --git a/components/http/BodyParameters.vue b/components/http/BodyParameters.vue
index b1dca1e72..be9c38c85 100644
--- a/components/http/BodyParameters.vue
+++ b/components/http/BodyParameters.vue
@@ -27,12 +27,7 @@
:placeholder="`key ${index + 1}`"
:name="`bparam ${index}`"
:value="param.key"
- @change="
- $store.commit('setKeyBodyParams', {
- index,
- value: $event.target.value,
- })
- "
+ @change="updateBodyParams($event, index, `setKeyBodyParams`)"
@keyup.prevent="setRouteQueryState"
autofocus
/>
@@ -45,10 +40,7 @@
@change="
// if input is form data, set value to be an array containing the value
// only
- $store.commit('setValueBodyParams', {
- index,
- value: $event.target.value,
- })
+ updateBodyParams($event, index, `setValueBodyParams`)
"
@keyup.prevent="setRouteQueryState"
/>
@@ -68,12 +60,7 @@