Skip to content

Commit

Permalink
fix: bug in array items (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmvilas authored Sep 25, 2020
1 parent d75ef7d commit f0877b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion partials/schema-prop.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
{% endif %}

{% if prop.type() === 'array' %}
{% set arrayItemsProps = prop.items().properties() %}
{% set arrayItemsProps = (prop.items().properties() if prop.items() else null) %}
{% if prop.items() and not arrayItemsProps %}
<p class="pl-6 mb-2 text-xs font-bold uppercase text-grey-darker">Items:</p>
{% if prop.items() | isArray %}
Expand Down

0 comments on commit f0877b9

Please sign in to comment.