Skip to content

Commit

Permalink
Handle orphaned annotations on view feedback page (#1950)
Browse files Browse the repository at this point in the history
Check for nil problem
  • Loading branch information
damianhxy authored Jul 25, 2023
1 parent c4ca573 commit 02dae45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/assessments/_remarks_panel.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</div>
<% subs_by_problem = @submission.annotations.group_by(&:problem)
subs_by_problem.each do |problem, annotations| %>
<b> <%= problem.name %> </b>
<b> <%= problem.nil? ? "Deleted Problem(s)" : problem.name %> </b>
<ul class="collection">
<%# use custom sort b/c using ordering doesn't work with autograder output, archived files %>
<%
Expand Down

0 comments on commit 02dae45

Please sign in to comment.