Fix focus on recommended

This commit is contained in:
Damontecres 2025-11-11 15:45:22 -05:00
parent f8a2bb1545
commit 5b1c46f0b7
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -223,7 +223,7 @@ fun RecommendedMovie(
viewModel.init() viewModel.init()
} }
val loading by viewModel.loading.observeAsState(LoadingState.Loading) val loading by viewModel.loading.observeAsState(LoadingState.Loading)
val rows by viewModel.rows.collectAsState(listOf()) val rows by viewModel.rows.collectAsState()
when (val state = loading) { when (val state = loading) {
is LoadingState.Error -> ErrorMessage(state) is LoadingState.Error -> ErrorMessage(state)

View file

@ -253,7 +253,7 @@ fun RecommendedTvShow(
} }
val loading by viewModel.loading.observeAsState(LoadingState.Loading) val loading by viewModel.loading.observeAsState(LoadingState.Loading)
val rows by viewModel.rows.collectAsState(listOf()) val rows by viewModel.rows.collectAsState()
when (val state = loading) { when (val state = loading) {
is LoadingState.Error -> ErrorMessage(state) is LoadingState.Error -> ErrorMessage(state)