-
Notifications
You must be signed in to change notification settings - Fork 16
708 - fix console warning in disable connections #750
Conversation
key: connection_key, | ||
name, | ||
disabled: shouldDisable, | ||
access: access_type, | ||
connection_type, | ||
}) | ||
.unwrap() |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bravo @eastandwestwind! good find
There was a problem hiding this comment.
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
* removes unneeded code in disable connection
Purpose
Fix console warning in disable connections
Changes
Checklist
CHANGELOG.md
fileCHANGELOG.md
file is being appended toUnreleased
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.Run Unsafe PR Checks
label has been applied, and checks have passed, if this PR touches any external servicesTicket
Fixes #708