fix: avoid null pointer exception in template rendering

This commit is contained in:
Björn Fromme
2024-12-17 08:49:03 +01:00
parent 2ebcb3cc99
commit 185c8580c7
@@ -1,5 +1,5 @@
<ul class="pb-8"> <ul class="pb-8">
{% if assignment.pickup %} {% if assignment.destination.pickup(assignment.pickup) %}
<li class="py-2"> <li class="py-2">
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<span class="flex-1">Busbegleitung ab {{ assignment.destination.pickup(assignment.pickup).city }}</span> <span class="flex-1">Busbegleitung ab {{ assignment.destination.pickup(assignment.pickup).city }}</span>