fix: remove // from key on disabled bulk edit entries
This commit is contained in:
@@ -181,7 +181,9 @@
|
||||
class="
|
||||
bg-transparent
|
||||
border-b border-dividerLight
|
||||
flex flex-1
|
||||
flex
|
||||
font-mono
|
||||
flex-1
|
||||
py-2
|
||||
px-4
|
||||
whitespace-pre
|
||||
@@ -368,8 +370,8 @@ export default defineComponent({
|
||||
watch(bulkHeaders, () => {
|
||||
try {
|
||||
const transformation = bulkHeaders.value.split("\n").map((item) => ({
|
||||
key: item.substr(0, item.indexOf(":")).trim(),
|
||||
value: item.substr(item.indexOf(":") + 1).trim(),
|
||||
key: item.substring(0, item.indexOf(":")).trim().replace(/^\/\//, ""),
|
||||
value: item.substring(item.indexOf(":") + 1).trim(),
|
||||
active: !item.trim().startsWith("//"),
|
||||
}))
|
||||
setGQLHeaders(transformation)
|
||||
|
||||
Reference in New Issue
Block a user