fix: add fallback for isSecret key (#5157)

This commit is contained in:
Nivedin 2025-06-16 18:22:52 +05:30 committed by GitHub
parent 9eeac1ac70
commit 44d5289a2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -460,7 +460,7 @@ const saveEnvironment = () => {
key: e.key,
currentValue: e.currentValue,
varIndex: i,
isSecret: e.secret,
isSecret: e.secret ?? false,
})
: O.none
)

View file

@ -426,7 +426,7 @@ const saveEnvironment = async () => {
key: e.key,
currentValue: e.currentValue,
varIndex: i,
isSecret: e.secret,
isSecret: e.secret ?? false,
})
: O.none
)

View file

@ -164,7 +164,7 @@ const updateEnvironments = (
nonSecretVariables.push({
key: e.key,
isSecret: e.secret,
isSecret: e.secret ?? false,
varIndex: index,
currentValue: e.currentValue ?? "",
})

View file

@ -386,7 +386,7 @@ export const CURRENT_ENVIRONMENT_VALUE_SCHEMA = z.union([
key: z.string(),
currentValue: z.string(),
varIndex: z.number(),
isSecret: z.boolean(),
isSecret: z.boolean().catch(false),
})
.strict()
)