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: delete not working properly on request body (#2861)

Akash K75c0350584bf
diff --git a/packages/hoppscotch-app/src/components/http/BodyParameters.vue b/packages/hoppscotch-app/src/components/http/BodyParameters.vue
index 11b9c3a4c..93b80982f 100644
--- a/packages/hoppscotch-app/src/components/http/BodyParameters.vue
+++ b/packages/hoppscotch-app/src/components/http/BodyParameters.vue
@@ -332,7 +332,9 @@ const deleteBodyParam = (index: number) => {
})
}
- workingParams.value.splice(index, 1)
+ workingParams.value = workingParams.value.filter(
+ (_, arrIndex) => arrIndex != index
+ )
}
const clearContent = () => {