Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Commit

Permalink
708 - fix console warning in disable connections (#750)
Browse files Browse the repository at this point in the history
* removes unneeded code in disable connection
  • Loading branch information
eastandwestwind authored Jun 28, 2022
1 parent 71f3be7 commit f5dbb41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@ const DisableConnectionModal: React.FC<DataConnectionProps> = ({

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 = () => {
Expand Down

0 comments on commit f5dbb41

Please sign in to comment.