From ffc80820095666677f2e5b55a28ff4f7c7d23052 Mon Sep 17 00:00:00 2001 From: Gregor Billing Date: Thu, 24 Oct 2024 20:51:50 +0900 Subject: [PATCH] Fix the initialization data when creating new scramble --- app/controllers/admin/scrambles_controller.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/controllers/admin/scrambles_controller.rb b/app/controllers/admin/scrambles_controller.rb index 3b335ee4eaa..378454dbdce 100644 --- a/app/controllers/admin/scrambles_controller.rb +++ b/app/controllers/admin/scrambles_controller.rb @@ -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