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

Signed-off-by: StefanMoCoAt <stefan.mo.co@gmail.com>
This commit is contained in:
2026-04-21 18:03:53 +02:00
parent d9b5c6bfea
commit 2d7046d0e3
@@ -260,7 +260,10 @@ fun DesktopContentArea(
} }
is AppScreen.EventNeu -> { 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( at.mocode.veranstaltung.feature.presentation.EventWizardScreen(
viewModel = viewModel, viewModel = viewModel,
onBack = onBack, onBack = onBack,