Skip to content

Commit

Permalink
🐛: fix datepicker not working
Browse files Browse the repository at this point in the history
  • Loading branch information
julesartd committed Apr 10, 2024
1 parent 103a00e commit 1e1d44f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class WeekScheduleCubit extends Cubit<WeekScheduleState> {
weekSchedule.expand((week) => week.daySchedules).toList();

// Only find the closest date if initialDate has not been set
initialDate = findClosestDate(allEvents);
initialDate ??= findClosestDate(allEvents);

final todayIndex = findTodayIndex(allEvents);

Expand Down

0 comments on commit 1e1d44f

Please sign in to comment.