fix: avoid rendering error caused by incomplete data

This commit is contained in:
Björn Fromme
2024-02-28 09:30:34 +01:00
parent 15d4962307
commit 28c7f83f47
@@ -94,11 +94,15 @@
<td> <td>
{% if assignment.pickup %} {% if assignment.pickup %}
{% set pickup = assignment.destination.pickup(assignment.pickup) %} {% set pickup = assignment.destination.pickup(assignment.pickup) %}
<a href="{{ path('app_administrative_assignment_detail', { 'uuid': assignment.uuid, 'r': return_url() }) }}"> {% if pickup %}
<span class="whitespace-nowrap">ab {{ pickup.city }}</span> <a href="{{ path('app_administrative_assignment_detail', { 'uuid': assignment.uuid, 'r': return_url() }) }}">
<br> <span class="whitespace-nowrap">ab {{ pickup.city }}</span>
{{ pickup.time }} <br>
</a> {{ pickup.time }}
</a>
{% else %}
<span class="text-red-500">ungültiger Zustieg</span>
{% endif %}
{% else %} {% else %}
- -
{% endif %} {% endif %}