intershop-pwa icon indicating copy to clipboard operation
intershop-pwa copied to clipboard

fix: handle case where all recently viewed products are failed/offline

Open janjoosse opened this issue 1 year ago • 2 comments

PR Type

[x] Bugfix

What Is the Current Behavior?

When all recently viewed products that displayed in the Recently viewed section go offline, the PWA still renders this heading for Recently viewed even though there are no products displayed.

Issue Number: Closes #

What Is the New Behavior?

The recently.facade.ts now filters both the recentlyViewedProducts and mostRecentlyViewedProducts, excluding products that are in the failed products store, instead of doing the filtering inside the products-list.component.ts.

Does this PR Introduce a Breaking Change?

[ ] Yes [x] No

Other Information

Issue described in support ticket https://support.intershop.com/cse/index.php/Display/967271

janjoosse avatar Apr 20 '23 11:04 janjoosse