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:
Roland Geider
2021-05-18 21:43:09 +02:00
parent 128020e4f6
commit 1ea13bb649

View File

@@ -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',