diff --git a/app/models/dialog_field_sorted_item.rb b/app/models/dialog_field_sorted_item.rb index 16da7aa0e79..752e8ae5300 100644 --- a/app/models/dialog_field_sorted_item.rb +++ b/app/models/dialog_field_sorted_item.rb @@ -102,14 +102,14 @@ def determine_selected_default_value def raw_values @raw_values ||= dynamic ? values_from_automate : static_raw_values - reject_extranneous_nil_values unless dynamic? + reject_extraneous_nil_values unless dynamic? @raw_values = sort_data(@raw_values) add_nil_option unless dynamic? determine_selected_default_value @raw_values end - def reject_extranneous_nil_values + def reject_extraneous_nil_values @raw_values = @raw_values.reject { |value| value[0].nil? } end