handle the case when there are no reactions
This commit is contained in:
parent
70159744e5
commit
22cfaf5cac
@ -38,7 +38,7 @@
|
|||||||
<section id="reactions">
|
<section id="reactions">
|
||||||
<h2 class="section_title">Réactions</h2>
|
<h2 class="section_title">Réactions</h2>
|
||||||
|
|
||||||
{%for reaction in npc.get("reactions")%}
|
{%for reaction in npc.get("reactions") or []%}
|
||||||
<div>
|
<div>
|
||||||
<p> {{reaction.get('name')}} </p>
|
<p> {{reaction.get('name')}} </p>
|
||||||
<img src="{{reaction.get('url')}}" style="max-width: 100; max-height: 100px">
|
<img src="{{reaction.get('url')}}" style="max-width: 100; max-height: 100px">
|
||||||
|
Loading…
Reference in New Issue
Block a user