From 290d198d07d02f0c7d6a9227cac4628c3d3a6e3d Mon Sep 17 00:00:00 2001 From: James Smith Date: Fri, 20 Sep 2024 15:10:43 +0100 Subject: [PATCH] Hide empty notes field --- app/views/models/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/models/show.html.erb b/app/views/models/show.html.erb index fd4ab4d14..233c01690 100644 --- a/app/views/models/show.html.erb +++ b/app/views/models/show.html.erb @@ -14,7 +14,7 @@ <%= card(:secondary) do %>

<%= markdownify @model.notes %>

- <% end if @model.notes %> + <% end if @model.notes.present? %>

<%= t(".files") %>