@snabcentr/client-ui 1.12.0 → 1.12.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -3617,7 +3617,7 @@ class ScPriceHistoryComponent {
|
|
3617
3617
|
}
|
3618
3618
|
/** @inheritDoc */
|
3619
3619
|
ngOnInit() {
|
3620
|
-
this.history$ = this.catalogService.getPriceHistory$(this.product).pipe(map((history) => Object.keys(history)
|
3620
|
+
this.history$ = this.catalogService.getPriceHistory$(this.product).pipe(filter(tuiIsPresent), map((history) => Object.keys(history)
|
3621
3621
|
.map((item) => [TuiDay.normalizeParse(item, 'DMY'), history[String(item)].cost])
|
3622
3622
|
.sort((a, b) => (a[0] > b[0] ? 1 : -1))), startWith(null), shareReplay({ bufferSize: 1, refCount: true }));
|
3623
3623
|
this.loadingHistory$ = this.history$.pipe(map(tuiIsFalsy));
|