diff --git a/lib/providers/routines.dart b/lib/providers/routines.dart index fb58f7cb..5b07dfe7 100644 --- a/lib/providers/routines.dart +++ b/lib/providers/routines.dart @@ -487,7 +487,7 @@ class RoutinesProvider with ChangeNotifier { Future deleteDay(int dayId) async { await baseProvider.deleteRequest(_daysUrlPath, dayId); for (final workout in _routines) { - workout.days.removeWhere((element) => element.id == dayId); + workout.days = List.of(workout.days)..removeWhere((element) => element.id == dayId); } notifyListeners(); }