Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: respect url parameters before settings bulk editor value
liyasthomas521a96bffb4b
diff --git a/packages/hoppscotch-app/components/http/Headers.vue b/packages/hoppscotch-app/components/http/Headers.vueindex 05d684c0f..a6b159bd9 100644--- a/packages/hoppscotch-app/components/http/Headers.vue+++ b/packages/hoppscotch-app/components/http/Headers.vue@@ -172,7 +172,7 @@</template><script setup lang="ts">-import { ref, useContext, watch, onMounted } from "@nuxtjs/composition-api"+import { ref, useContext, watch, onBeforeUpdate } from "@nuxtjs/composition-api"import { useCodemirror } from "~/helpers/editor/codemirror"import {addRESTHeader,@@ -223,7 +223,7 @@ watch(bulkHeaders, () => {const headers$ = useReadonlyStream(restHeaders$, [])-onMounted(() => editBulkHeadersLine(-1, null))+onBeforeUpdate(() => editBulkHeadersLine(-1, null))const editBulkHeadersLine = (index: number, item?: HoppRESTParam) => {const headers = headers$.valuediff --git a/packages/hoppscotch-app/components/http/Parameters.vue b/packages/hoppscotch-app/components/http/Parameters.vueindex 0f2030e51..f12f99154 100644--- a/packages/hoppscotch-app/components/http/Parameters.vue+++ b/packages/hoppscotch-app/components/http/Parameters.vue@@ -165,7 +165,7 @@</template><script setup lang="ts">-import { ref, useContext, watch, onMounted } from "@nuxtjs/composition-api"+import { ref, useContext, watch, onBeforeUpdate } from "@nuxtjs/composition-api"import { useCodemirror } from "~/helpers/editor/codemirror"import { HoppRESTParam } from "~/helpers/types/HoppRESTRequest"import { useReadonlyStream } from "~/helpers/utils/composables"@@ -217,7 +217,7 @@ useCodemirror(bulkEditor, bulkParams, {const params$ = useReadonlyStream(restParams$, [])-onMounted(() => editBulkParamsLine(-1, null))+onBeforeUpdate(() => editBulkParamsLine(-1, null))const editBulkParamsLine = (index: number, item?: HoppRESTParam) => {const params = params$.value