fix(champ): no crash when drop_down_list with other champ value_json is nil
This commit is contained in:
parent
4b740f8f29
commit
5cf90eb103
1 changed files with 1 additions and 1 deletions
|
@ -12,6 +12,6 @@ class TypesDeChamp::DropDownListTypeDeChamp < TypesDeChamp::TypeDeChampBase
|
||||||
end
|
end
|
||||||
|
|
||||||
def champ_with_other_value?(champ)
|
def champ_with_other_value?(champ)
|
||||||
drop_down_other? && champ.value_json['other']
|
drop_down_other? && champ.value_json&.fetch('other', false)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue