@snabcentr/client-ui 1.12.0 → 1.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of @snabcentr/client-ui might be problematic. Click here for more details.

@@ -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));