Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
camertron committed Oct 8, 2024
1 parent e94397c commit c1129d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/primer/forms/dsl/input.rb
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def input_data
def caption_template_name
return nil unless name

@caption_template_name ||= if respond_to?(:value)
@caption_template_name ||= if respond_to?(:value) && value.present?
:"#{name}_#{value}"
else
name.to_sym
Expand Down

0 comments on commit c1129d7

Please sign in to comment.