-
Notifications
You must be signed in to change notification settings - Fork 702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI: app repository Install Repo button fires twice (sometimes) #3678
Comments
I've noticed the same for the validation of an app repository (two requests). |
Not an easy one :) There are redundant calls int AppRepoForm.tsx:
However, the problem I'm facing with Jest is that simulating the 'click' on the button (having it changed to Will continue investigating tomorrow 👀 |
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
* Fix install repo firing twice (#3678) Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com> * Run forgotten Prettier (#3678) Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com> * Fix broken AppRepoForm test (#3678) Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com> * Modified variable name (#3678) Signed-off-by: Rafa Castelblanque <rcastelblanq@vmware.com>
Description:
I ran several times into the use case where clicking the "Install Repo" button to add a new app repository is being executed twice, resulting in an error message being displayed.
The first execution seems to properly create the app repository, and does not seem to be affected by the second execution.
Describe the results you expected:
Any submit button should be guarded from firing multiple times.
The text was updated successfully, but these errors were encountered: