fix: add fallback for isSecret key (#5157)
This commit is contained in:
parent
9eeac1ac70
commit
44d5289a2d
4 changed files with 4 additions and 4 deletions
|
|
@ -460,7 +460,7 @@ const saveEnvironment = () => {
|
|||
key: e.key,
|
||||
currentValue: e.currentValue,
|
||||
varIndex: i,
|
||||
isSecret: e.secret,
|
||||
isSecret: e.secret ?? false,
|
||||
})
|
||||
: O.none
|
||||
)
|
||||
|
|
|
|||
|
|
@ -426,7 +426,7 @@ const saveEnvironment = async () => {
|
|||
key: e.key,
|
||||
currentValue: e.currentValue,
|
||||
varIndex: i,
|
||||
isSecret: e.secret,
|
||||
isSecret: e.secret ?? false,
|
||||
})
|
||||
: O.none
|
||||
)
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ const updateEnvironments = (
|
|||
|
||||
nonSecretVariables.push({
|
||||
key: e.key,
|
||||
isSecret: e.secret,
|
||||
isSecret: e.secret ?? false,
|
||||
varIndex: index,
|
||||
currentValue: e.currentValue ?? "",
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue