Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: display snowflake errors instead of closing modal #11009

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

fontanierh
Copy link
Contributor

Description

We are closing the modal before the API call completes, so we're not displaying the error.

Tests

Manual

Risk

N/A

Deploy Plan

Deploy front

@@ -79,6 +80,7 @@ export function CreateOrUpdateConnectionSnowflakeModal({
warehouse: "",
});
_onSuccess(ds);
onClose();
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess here you'll want to add setIsOpen(false), no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No actually the setIsOpen was a mistake, removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just onClose does the trick 👍

Copy link
Contributor

@JulesBelveze JulesBelveze Feb 21, 2025

Choose a reason for hiding this comment

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

Oh, already done in onClose?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes !

@fontanierh fontanierh force-pushed the fix/dont-close-snowflake-modal-before-async-call branch from 9b5d1e9 to 7f1fd18 Compare February 21, 2025 16:08
@fontanierh fontanierh merged commit 147708c into main Feb 21, 2025
6 checks passed
@fontanierh fontanierh deleted the fix/dont-close-snowflake-modal-before-async-call branch February 21, 2025 16:18
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants