Skip to content

Commit

Permalink
Fix group meter interval (#4937)
Browse files Browse the repository at this point in the history
* Fix group meter interval

* Lint
  • Loading branch information
haneslinger authored Jan 29, 2025
1 parent 18b7bd2 commit 9610c95
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ angular.module('SEED.controller.inventory_group_detail_meters', [])
'Notification',
'dataset_service',
'inventory_service',
'meter_service',
'inventory_group_service',
'cycles',
'meters',
'inventory_payload',
Expand All @@ -33,7 +33,7 @@ angular.module('SEED.controller.inventory_group_detail_meters', [])
Notification,
dataset_service,
inventory_service,
meter_service,
inventory_group_service,
cycles,
meters,
inventory_payload,
Expand Down Expand Up @@ -312,13 +312,7 @@ angular.module('SEED.controller.inventory_group_detail_meters', [])
// according to the selected interval
$scope.refresh_readings = () => {
spinner_utility.show();
meter_service
.property_meter_usage(
$scope.inventory.view_id,
$scope.organization.id,
$scope.interval.selected,
[] // Not excluding any meters from the query
)
inventory_group_service.get_meter_usage($stateParams.group_id, $scope.interval.selected)
.then((usage) => {
// update the base data and reset filters
property_meter_usage = usage;
Expand Down

0 comments on commit 9610c95

Please sign in to comment.