diff --git a/src/app/components/results-menu/sbas-results-menu/sbas-sliders-two/sbas-sliders-two.component.ts b/src/app/components/results-menu/sbas-results-menu/sbas-sliders-two/sbas-sliders-two.component.ts index 62d459af9..f453868c5 100644 --- a/src/app/components/results-menu/sbas-results-menu/sbas-sliders-two/sbas-sliders-two.component.ts +++ b/src/app/components/results-menu/sbas-results-menu/sbas-sliders-two/sbas-sliders-two.component.ts @@ -117,6 +117,7 @@ export class SbasSlidersTwoComponent implements OnInit { this.subs.add( this.store$.select(filtersStore.getPerpendicularRange).subscribe( perp => { + console.log('perp in getPerpendicularRange:', perp); this.perpendicular = perp.start; this.options.controls.meterDistance.setValue(this.perpendicular); if (this.firstMeterLoad) { @@ -133,6 +134,7 @@ export class SbasSlidersTwoComponent implements OnInit { this.subs.add( this.metersValues$.subscribe( ([start]) => { + console.log('start in metersValues$:', start); const action = new filtersStore.SetPerpendicularRange({ start, end: null }); this.store$.dispatch(action); } diff --git a/src/app/components/results-menu/sbas-results-menu/sbas-sliders/sbas-sliders.component.ts b/src/app/components/results-menu/sbas-results-menu/sbas-sliders/sbas-sliders.component.ts index edaa00320..2dcd0133c 100644 --- a/src/app/components/results-menu/sbas-results-menu/sbas-sliders/sbas-sliders.component.ts +++ b/src/app/components/results-menu/sbas-results-menu/sbas-sliders/sbas-sliders.component.ts @@ -26,7 +26,8 @@ export class SbasSlidersComponent implements OnInit { public tempSlider; public temporal: number; - private firstLoad = true; + // private firstLoad = true; + private lastValue = 0 private subs = new SubSink(); constructor( @@ -41,6 +42,7 @@ export class SbasSlidersComponent implements OnInit { this.subs.add( baselineSlider.values$.subscribe( ([start]) => { + console.log('baselineSlider.values$ subscription start:', start); const action = new filtersStore.SetPerpendicularRange({ start, end: null }); this.store$.dispatch(action); } @@ -50,11 +52,12 @@ export class SbasSlidersComponent implements OnInit { this.subs.add( this.store$.select(filtersStore.getPerpendicularRange).subscribe( temp => { + console.log('getPerpendicularRange subscription temp:', temp); this.temporal = temp.start; - if (this.firstLoad) { + if (this.lastValue !== this.temporal) { this.tempSlider.set([this.temporal]); - this.firstLoad = false; + this.lastValue = this.temporal; } } ) diff --git a/src/app/services/saved-search.service.ts b/src/app/services/saved-search.service.ts index bf8b0e84e..691137bb5 100644 --- a/src/app/services/saved-search.service.ts +++ b/src/app/services/saved-search.service.ts @@ -69,7 +69,9 @@ export class SavedSearchService { this.store$.select(filtersStore.getDateRange), this.store$.select(filtersStore.getSBASOverlapThreshold),] ).pipe( - map(([reference, customPairIds, sbasFilters, + map(([reference, + customPairIds, + sbasFilters, dateRange, thresholdOverlap]) => ({ reference, dateRange,