handle the case when there are no reactions

This commit is contained in:
Thomas Rubini 2023-04-02 00:08:35 +02:00
parent 70159744e5
commit 22cfaf5cac
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -38,7 +38,7 @@
<section id="reactions">
<h2 class="section_title">Réactions</h2>
{%for reaction in npc.get("reactions")%}
{%for reaction in npc.get("reactions") or []%}
<div>
<p> {{reaction.get('name')}} </p>
<img src="{{reaction.get('url')}}" style="max-width: 100; max-height: 100px">