Skip to content

Commit

Permalink
SNRGY-3657 single value widget: explicitly sort by time
Browse files Browse the repository at this point in the history
  • Loading branch information
franzmueller committed Dec 2, 2024
1 parent 443a0f4 commit 76b440f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/widgets/single-value/shared/single-value.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export class SingleValueService {
criteria: widget.properties.deviceGroupCriteria,
targetCharacteristicId: widget.properties.targetCharacteristic,
},],
orderColumnIndex: 0,
}];
if (date !== undefined) {
requestPayload[0].time = {
Expand Down Expand Up @@ -139,6 +140,7 @@ export class SingleValueService {
// eslint-disable-next-line
requestPayload[1].time!.end = '2099-01-01T00:00:00Z';
requestPayload[1].orderDirection = 'asc';
requestPayload[1].orderColumnIndex = 0;
};


Expand Down

0 comments on commit 76b440f

Please sign in to comment.