feat: passe EventWizardViewModel-Initialisierung für optionale Parameter an

Signed-off-by: StefanMoCoAt <stefan.mo.co@gmail.com>
This commit is contained in:
Stefan Mogeritsch 2026-04-21 18:03:53 +02:00
parent d9b5c6bfea
commit 2d7046d0e3

View File

@ -260,7 +260,10 @@ fun DesktopContentArea(
}
is AppScreen.EventNeu -> {
val viewModel: at.mocode.veranstaltung.feature.presentation.EventWizardViewModel = koinViewModel()
// EventWizardViewModel expects an optional Long parameter (veranstalterId) via Koin.
// When starting a brand-new event (no preselected organizer), pass null explicitly.
val viewModel: at.mocode.veranstaltung.feature.presentation.EventWizardViewModel =
koinViewModel { parametersOf(null as Long?) }
at.mocode.veranstaltung.feature.presentation.EventWizardScreen(
viewModel = viewModel,
onBack = onBack,