From 2bf7999102d964c7b1867d8b302c7cb125aef409 Mon Sep 17 00:00:00 2001
From: Kat
Date: Mon, 7 Feb 2022 17:18:44 +0000
Subject: [PATCH] Only present next incomplete section link if such section
exists
---
app/views/case_logs/edit.html.erb | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/app/views/case_logs/edit.html.erb b/app/views/case_logs/edit.html.erb
index 6c8b38e93..5cd0de9a4 100644
--- a/app/views/case_logs/edit.html.erb
+++ b/app/views/case_logs/edit.html.erb
@@ -21,12 +21,14 @@
<% next_incomplete_section = get_next_incomplete_section(@case_log) %>
- >
- Skip to next incomplete section: <%= next_incomplete_section.label %>
-
+ <% if next_incomplete_section.present? %>
+ >
+ Skip to next incomplete section: <%= next_incomplete_section.label %>
+
+ <% end %>
<%= render "tasklist" %>