@@ -106,9 +106,7 @@
updateHeader(index, {
key: header.key,
value: header.value,
- active: header.hasOwnProperty('active')
- ? !header.active
- : false,
+ active: !header.active,
})
"
/>
@@ -124,8 +122,8 @@
![]()
diff --git a/packages/hoppscotch-app/newstore/RESTSession.ts b/packages/hoppscotch-app/newstore/RESTSession.ts
index 53aa87cb7..d5fce8140 100644
--- a/packages/hoppscotch-app/newstore/RESTSession.ts
+++ b/packages/hoppscotch-app/newstore/RESTSession.ts
@@ -28,7 +28,7 @@ export const defaultRESTRequest: HoppRESTRequest = {
endpoint: "https://echo.hoppscotch.io",
name: "Untitled request",
params: [{ key: "", value: "", active: true }],
- headers: [{ key: "", value: "", active: true }],
+ headers: [],
method: "GET",
auth: {
authType: "none",