Skip to content

Commit a496dfc

Browse files
author
davidhoelzel
committed
fix rendering for components without parameters
1 parent 5fcfe35 commit a496dfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/component/_item.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
{% for variation in component.variations %}
5050
<div class="twig-doc-variation">
5151
<div class="twig-doc-component-variation">
52-
{{ renderComponent(component, variation)|raw }}
52+
{{ renderComponent(component, variation ?? [])|raw }}
5353
</div>
5454
<div class="twig-doc-variation-description">
5555
<ul>

0 commit comments

Comments
 (0)