This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new f217c2b33 [STREAMPIPES-618] Fix wrong time selection in data explorer
     new afe0a3fc4 Merge branch 'dev' of 
github.com:apache/incubator-streampipes into dev
f217c2b33 is described below

commit f217c2b33d2c4645d14a9c63e34a489c6d1e35d5
Author: Dominik Riemer <[email protected]>
AuthorDate: Mon Nov 7 21:47:13 2022 +0100

    [STREAMPIPES-618] Fix wrong time selection in data explorer
---
 .../components/time-selector/timeRangeSelector.component.ts         | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/ui/src/app/data-explorer/components/time-selector/timeRangeSelector.component.ts
 
b/ui/src/app/data-explorer/components/time-selector/timeRangeSelector.component.ts
index da92eb249..3733ef170 100644
--- 
a/ui/src/app/data-explorer/components/time-selector/timeRangeSelector.component.ts
+++ 
b/ui/src/app/data-explorer/components/time-selector/timeRangeSelector.component.ts
@@ -110,7 +110,11 @@ export class TimeRangeSelectorComponent implements OnInit {
     const difference = this.endDate.getTime() - this.startDate.getTime();
 
     const current = new Date().getTime();
-    this.dateRange = {startTime: current - difference, endTime: current, 
dynamicSelection: -1};
+    this.dateRange = {
+      startTime: current - difference,
+      endTime: current,
+      dynamicSelection: this.dateRange.dynamicSelection
+    };
 
     this.reloadData();
   }

Reply via email to