From 3169c0803eee11d90dbfa6ea1df10dcf3a863609 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Thu, 3 Mar 2022 20:38:49 +0100 Subject: [PATCH] BUGFIX: assignment does not need mapping --- lib/custom_wizard/builder.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/custom_wizard/builder.rb b/lib/custom_wizard/builder.rb index 681bc459..8279d070 100644 --- a/lib/custom_wizard/builder.rb +++ b/lib/custom_wizard/builder.rb @@ -154,15 +154,6 @@ class CustomWizard::Builder end end - if content[:type] == 'assignment' && field_template['type'] === 'dropdown' - content[:result] = content[:result].map do |item| - { - id: item, - name: item - } - end - end - params[:content] = content[:result] end end