{# The entity's current fields, read by spec-builder-core.js so the ERD
follows every edit without a reload. Same shape as base.html's map. #}
{% if error %}
{% set relationships = [] %}
{% for field in entity.fields %}
{% if field.type in ['list', 'entity'] and field.items %}
{% set _ = relationships.append(field) %}
{% endif %}
{% endfor %}
{% if relationships %}