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

708 - fix console warning in disable connections #750

Merged
merged 3 commits into from
Jun 28, 2022

Conversation

eastandwestwind
Copy link
Contributor

@eastandwestwind eastandwestwind commented Jun 28, 2022

Purpose

Fix console warning in disable connections

Changes

  • Removes unneeded code in disable connection

Checklist

  • Update CHANGELOG.md file
    • Merge in main so the most recent CHANGELOG.md file is being appended to
    • Add description within the Unreleased section in an appropriate category. Add a new category from the list at the top of the file if the needed one isn't already there.
    • Add a link to this PR at the end of the description with the PR number as the text. example: #1
  • Applicable documentation updated (guides, quickstart, postman collections, tutorial, fidesdemo, database diagram.
  • If docs updated (select one):
    • documentation complete, or draft/outline provided (tag docs-team to complete/review on this branch)
    • documentation issue created (tag docs-team to complete issue separately)
  • Good unit test/integration test coverage
  • This PR contains a DB migration. If checked, the reviewer should confirm with the author that the down_revision correctly references the previous migration before merging
  • The Run Unsafe PR Checks label has been applied, and checks have passed, if this PR touches any external services

Ticket

Fixes #708

key: connection_key,
name,
disabled: shouldDisable,
access: access_type,
connection_type,
})
.unwrap()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the modal still close once the request finishes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, it still closes automatically once the request completes

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's great. So was the issue was calling the onClose function after the modal had closed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bravo @eastandwestwind! good find

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, that onClose was the issue. I suspect something to do with the component possibly being unmounted by the time onClose is called

@pattisdr pattisdr self-assigned this Jun 28, 2022
@pattisdr pattisdr merged commit f5dbb41 into main Jun 28, 2022
@pattisdr pattisdr deleted the 708-console-warning-disable-connection branch June 28, 2022 20:33
sanders41 pushed a commit that referenced this pull request Sep 22, 2022
* removes unneeded code in disable connection
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Console Warning for Disable Connection
3 participants