Skip to content

Commit 96dda98

Browse files
committed
Unbreak problemset overview
The Jury problemset overview page doesn't get the team as a jury member might not have a team connected.
1 parent 795cc23 commit 96dda98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/templates/partials/problem_list.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
{% if clarifications[problem.probid] is defined %}
131131
{% set clarificationsCount = clarifications[problem.probid] | length %}
132132
{% for clar in clarifications[problem.probid] %}
133-
{% if team.unreadClarifications.contains(clar) %}
133+
{% if team and team.unreadClarifications.contains(clar) %}
134134
{% set unseenClarificationCount = unseenClarificationCount + 1 %}
135135
{% endif %}
136136
{% endfor %}

0 commit comments

Comments
 (0)