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

Fix error when creating an user without associating a group #22

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

fhmurakami
Copy link
Owner

When a participant was created without associating a group to it, the _participant.html.erb partial was breaking because it was trying to read an id and a name for a nil group.

This PR fix this error using the safe navigation operator, and it hides the group option from the participant form if no groups are created yet.

@fhmurakami fhmurakami merged commit e5c72a3 into main Dec 30, 2024
2 checks passed
@fhmurakami fhmurakami deleted the fix/participant-without-group-error branch December 30, 2024 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant