|
@@ -192,12 +192,12 @@ const ModelLoadBalancingEntryModal: FC<ModelModalProps> = ({
|
|
|
})
|
|
|
const getSecretValues = useCallback((v: FormValue) => {
|
|
|
return secretFormSchemas.reduce((prev, next) => {
|
|
|
- if (v[next.variable] === initialFormSchemasValue[next.variable])
|
|
|
+ if (isEditMode && v[next.variable] && v[next.variable] === initialFormSchemasValue[next.variable])
|
|
|
prev[next.variable] = '[__HIDDEN__]'
|
|
|
|
|
|
return prev
|
|
|
}, {} as Record<string, string>)
|
|
|
- }, [initialFormSchemasValue, secretFormSchemas])
|
|
|
+ }, [initialFormSchemasValue, isEditMode, secretFormSchemas])
|
|
|
|
|
|
// const handleValueChange = ({ __model_type, __model_name, ...v }: FormValue) => {
|
|
|
const handleValueChange = (v: FormValue) => {
|