Skip to content
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

Duplicate teams #118

Open
kamicut opened this issue Sep 16, 2019 · 2 comments
Open

Duplicate teams #118

kamicut opened this issue Sep 16, 2019 · 2 comments
Assignees
Labels
Category: Teams Type: Bug Something isn't working

Comments

@kamicut
Copy link
Member

kamicut commented Sep 16, 2019

For some reason, there are a few duplicate teams on the website after we've launched this publicly. I'm not sure why, I wonder if there is a bug here that is duplicating the POST request or maybe it could be a double click on the create button.

@kamicut kamicut added the Type: Bug Something isn't working label Sep 16, 2019
@kamicut kamicut self-assigned this Sep 16, 2019
@guidorice
Copy link

I ran into this with a team I created, Four Corners Mappers, and I believe it was just via an Edit Team interaction that it occurred (although I cannot reproduce it more than once for a team).

@vgeorge
Copy link
Member

vgeorge commented Mar 17, 2022

If still happening, this is probably originated here:

<Button
disabled={isSubmitting}
variant='primary'
onClick={() => {
if (Object.keys(errors).length) {
setErrors(errors)
return setStatus({
errors
})
}
return submitForm()
}}
type='submit'
value='submit'
/>

As the button is of type 'submit', it will send the form, but the onClick event is also submitting the form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Teams Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants