Skip to content

Commit

Permalink
Use "<None>" for a nil drop down, otherwise the supplied value
Browse files Browse the repository at this point in the history
  • Loading branch information
eclarizio committed Mar 8, 2017
1 parent 133a3f5 commit 0d59c18
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
});

- else
= h(field.values.detect { |k, _v| [k, k.to_s].include?(wf.value(field.name)) }.try(:last) || wf.value(field.name))
= h(field.value.nil? ? "<None>" : field.value)

0 comments on commit 0d59c18

Please sign in to comment.