From 22cfaf5cace91cd6dc916c5508a39b34d12b1053 Mon Sep 17 00:00:00 2001 From: Thomas Rubini <74205383+ThomasRubini@users.noreply.github.com> Date: Sun, 2 Apr 2023 00:08:35 +0200 Subject: [PATCH] handle the case when there are no reactions --- truthinquiry/templates/admin/npc.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/truthinquiry/templates/admin/npc.html b/truthinquiry/templates/admin/npc.html index 972a8b8..b34edd7 100644 --- a/truthinquiry/templates/admin/npc.html +++ b/truthinquiry/templates/admin/npc.html @@ -38,7 +38,7 @@

Réactions

- {%for reaction in npc.get("reactions")%} + {%for reaction in npc.get("reactions") or []%}

{{reaction.get('name')}}