Skip to content

Commit

Permalink
Correctly check if variable on work template is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
alastair committed Apr 11, 2022
1 parent 06e85e3 commit 94eee08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion critiquebrainz/frontend/templates/review/entity/work.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h2 id="title">

{{ _('%(work)s', work=work_name) }}

{% if work['life-span'] %}
{% if work['life-span'] is defined %}
<small>{{ work['life-span']['begin'][:4] }}</small>
{% endif %}
</h2>
Expand Down

0 comments on commit 94eee08

Please sign in to comment.