diff --git a/web/components/config/edit-storage.tsx b/web/components/config/edit-storage.tsx index 9914d7cc8..1de972e8d 100644 --- a/web/components/config/edit-storage.tsx +++ b/web/components/config/edit-storage.tsx @@ -38,10 +38,10 @@ function checkSaveable(formValues: any, currentValues: any) { accessKey !== currentValues.accessKey || secret !== currentValues.secret || region !== currentValues.region || - (!currentValues.servingEndpoint && (servingEndpoint !=='')) || - (!!currentValues.servingEndpoint && (servingEndpoint !== currentValues.servingEndpoint)) || - (!currentValues.acl && (acl !== '')) || - (!!currentValues.acl && (acl !== currentValues.acl)) + (!currentValues.servingEndpoint && servingEndpoint !== '') || + (!!currentValues.servingEndpoint && servingEndpoint !== currentValues.servingEndpoint) || + (!currentValues.acl && acl !== '') || + (!!currentValues.acl && acl !== currentValues.acl) ) { return true; }