feat: allow to use IAM Role for Bedrock (#5188)

This commit is contained in:
Masashi Tomooka
2024-06-14 16:18:42 +09:00
committed by GitHub
parent f87f11e92c
commit 0633aae7dc
3 changed files with 9 additions and 9 deletions

View File

@@ -205,7 +205,7 @@ const ModelModal: FC<ModelModalProps> = ({
const encodeSecretValues = useCallback((v: FormValue) => {
const result = { ...v }
extendedSecretFormSchemas.forEach(({ variable }) => {
if (result[variable] === formSchemasValue?.[variable])
if (result[variable] === formSchemasValue?.[variable] && result[variable] !== undefined)
result[variable] = '[__HIDDEN__]'
})
return result