From 02dae4555215b48ea88dab8833d15a43261efd2f Mon Sep 17 00:00:00 2001 From: Damian Ho Date: Tue, 25 Jul 2023 13:13:28 +0800 Subject: [PATCH] Handle orphaned annotations on view feedback page (#1950) Check for nil problem --- app/views/assessments/_remarks_panel.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/assessments/_remarks_panel.html.erb b/app/views/assessments/_remarks_panel.html.erb index 224ea6eb1..93ddf27b9 100644 --- a/app/views/assessments/_remarks_panel.html.erb +++ b/app/views/assessments/_remarks_panel.html.erb @@ -5,7 +5,7 @@ <% subs_by_problem = @submission.annotations.group_by(&:problem) subs_by_problem.each do |problem, annotations| %> - <%= problem.name %> + <%= problem.nil? ? "Deleted Problem(s)" : problem.name %>