Skip to content

Commit

Permalink
Only show url if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Sep 11, 2024
1 parent 2cdad42 commit 64277b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/fields/url_field/_show.html.erb
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
<%= link_to field.to_s, field.to_s %>
<% if field.to_s %>
<%= link_to field.to_s, field.to_s %>
<% end %>

0 comments on commit 64277b4

Please sign in to comment.