feat: passe EventWizardViewModel-Initialisierung für optionale Parameter an
Signed-off-by: StefanMoCoAt <stefan.mo.co@gmail.com>
This commit is contained in:
parent
d9b5c6bfea
commit
2d7046d0e3
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user