mirror of
https://github.com/SyncrowIOT/web.git
synced 2026-10-25 12:17:56 +00:00
Updated OccupancyHeatMapModel model with what the api returns, and only used the necessary fields that the api returns for this feature to work.
This commit is contained in:
@@ -68,7 +68,10 @@ class OccupancyHeatMapBox extends StatelessWidget {
|
||||
Expanded(
|
||||
child: OccupancyHeatMap(
|
||||
heatMapData: state.heatMapData.asMap().map(
|
||||
(_, value) => MapEntry(value.date, value.occupancy),
|
||||
(_, value) => MapEntry(
|
||||
value.eventDate,
|
||||
value.countTotalPresenceDetected,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user