fix: respect url parameters before settings bulk editor value

This commit is contained in:
liyasthomas
2021-11-11 15:02:31 +05:30
parent ead1f3954f
commit 521a96bffb
2 changed files with 4 additions and 4 deletions

View File

@@ -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$.value