fix: trailing comma makes json invalid (#4416)

Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
This commit is contained in:
Anwarul Islam
2024-10-28 21:34:08 +06:00
committed by GitHub
parent 84f0f478d4
commit 20c4767dce
5 changed files with 93 additions and 266 deletions

View File

@@ -352,7 +352,7 @@ watch(
env: {
key: e.key,
value: e.secret
? secretEnvironmentService.getSecretEnvironmentVariable(
? (secretEnvironmentService.getSecretEnvironmentVariable(
props.editingEnvironmentIndex === "Global"
? "Global"
: workingEnvID.value,
@@ -360,7 +360,7 @@ watch(
)?.value ??
// @ts-expect-error `value` field can exist for secret environment variables as inferred while importing
e.value ??
""
"")
: e.value,
secret: e.secret,
},

View File

@@ -311,13 +311,13 @@ watch(
env: {
key: e.key,
value: e.secret
? secretEnvironmentService.getSecretEnvironmentVariable(
? (secretEnvironmentService.getSecretEnvironmentVariable(
editingID.value ?? "",
index
)?.value ??
// @ts-expect-error `value` field can exist for secret environment variables as inferred while importing
e.value ??
""
"")
: e.value,
secret: e.secret,
},