From 75c0350584bff9b125d4006195adff59ab86cc15 Mon Sep 17 00:00:00 2001 From: Akash K <57758277+amk-dev@users.noreply.github.com> Date: Fri, 25 Nov 2022 08:30:43 +0530 Subject: [PATCH] fix: delete not working properly on request body (#2861) --- .../hoppscotch-app/src/components/http/BodyParameters.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = () => {