diff --git a/CHANGELOG.md b/CHANGELOG.md index 12fc2e248..9be99ea28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ The types of changes are: ### Fixed * Make reading of environment variables case insensitive [712](https://github.com/ethyca/fidesops/pull/712) +* Fix console warning in disable connection modal [750](https://github.com/ethyca/fidesops/pull/750) ## [1.6.0](https://github.com/ethyca/fidesops/compare/1.5.3...1.6.0) diff --git a/clients/admin-ui/src/features/datastore-connections/DisableConnectionModal.tsx b/clients/admin-ui/src/features/datastore-connections/DisableConnectionModal.tsx index d0b6f9943..e5a4b064d 100644 --- a/clients/admin-ui/src/features/datastore-connections/DisableConnectionModal.tsx +++ b/clients/admin-ui/src/features/datastore-connections/DisableConnectionModal.tsx @@ -38,15 +38,13 @@ const DisableConnectionModal: React.FC = ({ const handleDisableConnection = async () => { const shouldDisable = !disabled; - return patchConnection({ + patchConnection({ key: connection_key, name, disabled: shouldDisable, access: access_type, connection_type, - }) - .unwrap() - .then(() => onClose()); + }); }; const closeIfComplete = () => {