Commit c9bfb349 authored by Stefan Haslinger's avatar Stefan Haslinger

we need empty power zone list for updating

parent 18677a12
......@@ -109,6 +109,8 @@ class _ActivityPowerWidgetState extends State<ActivityPowerWidget> {
powerZoneSchema = await activity.getPowerZoneSchema();
if (powerZoneSchema != null)
powerZones = await powerZoneSchema.powerZones;
else
powerZones = [];
setState(() {});
}
}
......@@ -107,6 +107,8 @@ class _LapPowerWidgetState extends State<LapPowerWidget> {
powerZoneSchema = await lap.getPowerZoneSchema();
if (powerZoneSchema != null)
powerZones = await powerZoneSchema.powerZones;
else
powerZones = [];
setState(() {});
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment