fix: correctly populate courses property

This commit is contained in:
Björn Fromme
2024-11-15 09:57:25 +01:00
parent eddad77f48
commit 205efd0558
3 changed files with 17 additions and 3 deletions
@@ -111,12 +111,11 @@
Organisatorisches
</h2>
</div>
<div class="container px-4 lg:px-24 flex flex-col space-y-16 pb-16">
<f:for each="{travelinfo.teasers}" as="teaser">
<f:if condition="{teaser.category} == 'course'">
<f:then>
<f:if condition="{date.coursesIncluded}">
<f:if condition="{date.coursesIncluded -> f:count()} > 0">
<f:render section="Teaser" arguments="{_all}"/>
</f:if>
</f:then>