Fixed Delete Time Progress Bug

Signed-off-by: Andreas Fahrecker <AndreasFahrecker@gmail.com>
This commit is contained in:
Andreas Fahrecker committed 2021-02-11 15:30:48 +01:00
1 parent fad8d8b49b
commit 6dde08d74d
3 files changed
+18 -19

No files matched your search

+1 -1
View File
@@ -45,5 +45,5 @@ List<TimeProgress> pastTimeProgressesSelector(AppState state) =>
TimeProgress timeProgressByIdSelector(AppState state, String id) {
if (state.timeProgressList.length < 1) return null;
return state.timeProgressList
.firstWhere((timeProgress) => timeProgress.id == id);
.firstWhere((timeProgress) => timeProgress.id == id, orElse: () => null);
}