forked from eatvio/eatvio_app
fix(diary) Fix
This commit is contained in:
@@ -236,6 +236,7 @@ class DiaryEditBloc extends Bloc<DiaryEditEvent, DiaryEditState> {
|
||||
int? id = event.value.id;
|
||||
emit(currentState.copyWith(
|
||||
currentMeal: event.value,
|
||||
portions: event.meals?[event.value.id ?? 0]['portions'],
|
||||
mealTimeController:
|
||||
toTime(event.meals?[event.value.id ?? 0]['time'] ?? "1$id:00"),
|
||||
selectedMood: event.meals?[event.value.id ?? 0]['mood'],
|
||||
|
||||
Reference in New Issue
Block a user