Skip to content

Commit

Permalink
Fix field with no params set in jinja (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
bameyrick authored Jul 10, 2019
1 parent 58bca76 commit 5b97212
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/field/_macro.njk
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{% macro onsField(params) %}
{% if not params %}
{% set params = {} %}
{% endif %}
<p
{% if params.id %}id="{{ params.id }}"{% endif %}
class="field"
Expand Down

0 comments on commit 5b97212

Please sign in to comment.