Merge pull request #11054 from tchak/fix-drop-down-other
fix(champ): no crash when drop_down_list with other champ value_json is nil
This commit is contained in:
commit
28ca26b7ce
1 changed files with 1 additions and 1 deletions
|
@ -12,6 +12,6 @@ class TypesDeChamp::DropDownListTypeDeChamp < TypesDeChamp::TypeDeChampBase
|
|||
end
|
||||
|
||||
def champ_with_other_value?(champ)
|
||||
drop_down_other? && champ.value_json['other']
|
||||
drop_down_other? && champ.value_json&.fetch('other', false)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue