From b1fe72c60d45e6c16e6165d5d9a1a558a00f2b43 Mon Sep 17 00:00:00 2001 From: miakh <2659269+miakh@users.noreply.github.com> Date: Sat, 16 Nov 2024 22:12:34 +0100 Subject: [PATCH] null place edit fix --- lib/pages/EventEditPage.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pages/EventEditPage.dart b/lib/pages/EventEditPage.dart index 2dfab7d0..f6079086 100644 --- a/lib/pages/EventEditPage.dart +++ b/lib/pages/EventEditPage.dart @@ -123,7 +123,7 @@ class _EventEditPageState extends State { ..maxParticipants = maxParticipants == 0 ? null : maxParticipants ..splitForMenWomen = splitForMenWomen! ..isGroupEvent = isGroupEvent! - ..place = places!.firstWhereOrNull((p)=>p.id! == placeId!) + ..place = places!.firstWhereOrNull((p)=>p.id == placeId) ..type = type ..description = content ..parentEventIds = showInsideEvent != null && showInsideEvent!.isNotEmpty