Skip to content

Commit

Permalink
Merge pull request #1976 from asfadmin/yoreley/fix-bug-2
Browse files Browse the repository at this point in the history
Yoreley/fix bug 2
  • Loading branch information
artisticlight authored Sep 16, 2024
2 parents a00fb8e + 5b52704 commit f5991e2
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class SbasSlidersTwoComponent implements OnInit {
public metersValues$ = new Subject<number[]>();
// public perpStart = 800;

// private firstLoad = true;
private firstLoad = true;
private firstMeterLoad = true;
private subs = new SubSink();

Expand Down Expand Up @@ -105,8 +105,9 @@ export class SbasSlidersTwoComponent implements OnInit {
this.subs.add(
this.store$.select(filtersStore.getTemporalRange).subscribe(
temp => {
if (this.daysRange.start !== temp.start || this.daysRange.end !== temp.end) {
this.daysRange = {start: temp.start, end: temp.end};
this.daysRange = {start: temp.start, end: temp.end};
if (this.firstLoad) {
this.firstLoad = false;
this.slider.set([temp.start, temp.end]);
}
}
Expand Down

0 comments on commit f5991e2

Please sign in to comment.