{% set rows=data.components|default([]) %}{% for index in 0..3 %}{% set component=rows[index]|default(null) %}
{% if errors['component_'~index] is defined %}{{ errors['component_'~index] }}{% endif %}{% endfor %}