From 53cf80282ea9fa03161872ab8e36d6faca993f61 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 3 Feb 2021 12:20:03 -0800 Subject: [PATCH] Fix issue where you cannot re-enable storage after disabling it --- web/pages/components/config/edit-storage.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/pages/components/config/edit-storage.tsx b/web/pages/components/config/edit-storage.tsx index a2e26f98e..b6df52749 100644 --- a/web/pages/components/config/edit-storage.tsx +++ b/web/pages/components/config/edit-storage.tsx @@ -27,12 +27,10 @@ const { Panel } = Collapse; function checkSaveable(formValues: any, currentValues: any) { const { endpoint, accessKey, secret, bucket, region, enabled, servingEndpoint, acl } = formValues; // if fields are filled out and different from what's in store, then return true - if (!enabled || enabled !== currentValues.enabled) { - return true; - } if (enabled) { if (!!endpoint && isValidUrl(endpoint) && !!accessKey && !!secret && !!bucket && !!region) { if ( + enabled !== currentValues.enabled || endpoint !== currentValues.endpoint || accessKey !== currentValues.accessKey || secret !== currentValues.secret ||