From 5f0d1ae52fbffd2d04aec8356b63080b592975ac Mon Sep 17 00:00:00 2001 From: Andrew Bastin Date: Fri, 31 Dec 2021 21:35:09 +0530 Subject: [PATCH] refactor: params should respect the data model --- .../components/http/Parameters.vue | 211 ++++++++++++------ .../hoppscotch-app/newstore/RESTSession.ts | 2 +- 2 files changed, 138 insertions(+), 75 deletions(-) diff --git a/packages/hoppscotch-app/components/http/Parameters.vue b/packages/hoppscotch-app/components/http/Parameters.vue index e3b28e3c5..430d8faf5 100644 --- a/packages/hoppscotch-app/components/http/Parameters.vue +++ b/packages/hoppscotch-app/components/http/Parameters.vue @@ -39,7 +39,7 @@
@@ -117,7 +117,7 @@
diff --git a/packages/hoppscotch-app/newstore/RESTSession.ts b/packages/hoppscotch-app/newstore/RESTSession.ts index d5fce8140..5ffd5ecc2 100644 --- a/packages/hoppscotch-app/newstore/RESTSession.ts +++ b/packages/hoppscotch-app/newstore/RESTSession.ts @@ -27,7 +27,7 @@ export const defaultRESTRequest: HoppRESTRequest = { v: RESTReqSchemaVersion, endpoint: "https://echo.hoppscotch.io", name: "Untitled request", - params: [{ key: "", value: "", active: true }], + params: [], headers: [], method: "GET", auth: {