Skip to content

Commit

Permalink
Fix the initialization data when creating new scramble
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorbg committed Oct 24, 2024
1 parent 3cedbd2 commit ffc8082
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/controllers/admin/scrambles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ def new
# Using Scramble.new wouldn't work here: we have no idea what the country
# could be and so on, so serialization would fail.
@scramble = {
competition_id: competition.id,
round_type_id: round.round_type_id,
group_id: 'TODO',
event_id: round.event.id,
competitionId: competition.id,
roundTypeId: round.round_type_id,
eventId: round.event.id,
}
end

Expand Down

0 comments on commit ffc8082

Please sign in to comment.