Skip to content

Commit

Permalink
fix default form value
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Nov 18, 2023
1 parent 0698aad commit 06d3d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/submitters/maybe_update_default_values.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def call(submitter, current_user)

default_value = get_default_value_for_field(field, user, submitter)

submitter.values[field['uuid']] ||= value if default_value.present?
submitter.values[field['uuid']] ||= default_value if default_value.present?
end

submitter.save!
Expand Down

0 comments on commit 06d3d12

Please sign in to comment.