From 64277b4f593aecd6dc30b8da08592eb1f1262e87 Mon Sep 17 00:00:00 2001 From: Matthew Landauer Date: Wed, 11 Sep 2024 03:17:41 +0000 Subject: [PATCH] Only show url if it exists --- app/views/fields/url_field/_show.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/fields/url_field/_show.html.erb b/app/views/fields/url_field/_show.html.erb index 78afeaaa8..120a25217 100644 --- a/app/views/fields/url_field/_show.html.erb +++ b/app/views/fields/url_field/_show.html.erb @@ -1 +1,3 @@ -<%= link_to field.to_s, field.to_s %> +<% if field.to_s %> + <%= link_to field.to_s, field.to_s %> +<% end %> \ No newline at end of file