chore: minor fixes and improvements

This commit is contained in:
liyasthomas
2021-11-14 20:15:24 +05:30
parent f228f37bb8
commit d383b48916
6 changed files with 46 additions and 2 deletions

View File

@@ -223,6 +223,19 @@ watch(bulkHeaders, () => {
const headers$ = useReadonlyStream(restHeaders$, [])
watch(
headers$,
(newValue) => {
if (
(newValue[newValue.length - 1]?.key !== "" ||
newValue[newValue.length - 1]?.value !== "") &&
newValue.length
)
addHeader()
},
{ deep: true }
)
onBeforeUpdate(() => editBulkHeadersLine(-1, null))
const editBulkHeadersLine = (index: number, item?: HoppRESTParam) => {