fix(conditional): handle incorrect user input
This commit is contained in:
parent
df7e5256ea
commit
0d3856e84a
3 changed files with 17 additions and 3 deletions
|
@ -25,6 +25,7 @@ class Logic::ChampValue < Logic::Term
|
|||
targeted_champ = champ(champs)
|
||||
|
||||
return nil if !targeted_champ.visible?
|
||||
return nil if targeted_champ.blank?
|
||||
|
||||
case type_de_champ.type_champ
|
||||
when MANAGED_TYPE_DE_CHAMP.fetch(:yes_no),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue