MemberDataSheet: Fix bug where program crashes when no cultid is set

This commit is contained in:
2024-02-22 10:52:45 +01:00
parent 5a6317fcdb
commit 3324a9a238

View File

@ -196,7 +196,7 @@
<td>@areaCom.Rd?.Name</td>
<td class="text">@areaCom.GstNr.Replace(",", ", ").Replace("-", "")</td>
<td class="number">@($"{areaCom.Area:N0}")</td>
<td class="center">@areaCom.WineCult.Name</td>
<td class="center">@areaCom.WineCult?.Name</td>
<td class="center">@(areaCom.YearTo == null ? $"ab {areaCom.YearFrom}" : $"{areaCom.YearFrom}{areaCom.YearTo}")</td>
</tr>
lastContract = contractType.AreaComType.DisplayName;