Skip to content

Commit

Permalink
fix(schedules-feature): crash when it loads the agenda without cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardPaligot committed Nov 14, 2023
1 parent e5da84f commit 681e017
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class ScheduleListViewModel(
if (it.isNotEmpty()) {
ScheduleListUiState.Success(it.values.toImmutableList())
} else {
ScheduleListUiState.Success(persistentListOf())
ScheduleListUiState.Loading(persistentListOf(AgendaUi.fake))
}
}
.catch {
Expand Down

0 comments on commit 681e017

Please sign in to comment.