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