mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-30 17:52:35 +01:00
Reset the log list when loading the plan
Otherwise every time the user opens a workout, the logs will get added again and again to the list
This commit is contained in:
@@ -227,6 +227,7 @@ class WorkoutPlansProvider extends WgerBaseProvider with ChangeNotifier {
|
||||
plan.days = days;
|
||||
|
||||
// Logs
|
||||
plan.logs = [];
|
||||
final logData = await fetch(makeUrl(_logsUrlPath, query: {
|
||||
'workout': workoutId.toString(),
|
||||
'limit': '1000',
|
||||
|
||||
Reference in New Issue
Block a user