-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Prevent blank order history page when using new tab component #19543
base: develop
Are you sure you want to change the base?
Conversation
feature-libs/cart/base/components/add-to-cart/add-to-cart.component.ts
Outdated
Show resolved
Hide resolved
this.tabs$ = combineLatest([this.components$, this.tabRefs.changes]).pipe( | ||
this.tabs$ = combineLatest([ | ||
this.components$, | ||
this.tabRefs.changes.pipe(startWith(this.tabRefs)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After navigating to different route and back the tabRefs
are already initialised with values and this.tabRefs.changes
does not emit any value. This change ensures that at least the initial value will be taken into account. This solves the problem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice find! Are we able to add an e2e test for the empty order history case just to make sure we have coverage?
06eac48
to
687acad
Compare
Merge Checks Failed
|
if (this.featureConfigService.isEnabled('a11yPickupOptionsTabs')) { | ||
if ( | ||
this.featureConfigService.isEnabled('a11yPickupOptionsTabs') && | ||
this.pickupOptionCompRef instanceof ComponentRef |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is not directly related to the issue, but still its better to have this fix as soon as possible, since there is an error in console for b2b
spartacus Run #45753
Run Properties:
|
Project |
spartacus
|
Branch Review |
bugfix/CXSPA-8712
|
Run status |
Passed #45753
|
Run duration | 04m 50s |
Commit |
b0e061012a ℹ️: Merge 687acad07dec9e58b2bc41f8dc029851f2959f23 into ff6ce9f1dc7fd6f73de012ecc9d7...
|
Committer | sdrozdsap |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
4
|
Pending |
2
|
Skipped |
0
|
Passing |
125
|
View all changes introduced in this branch ↗︎ |
this.tabs$ = combineLatest([this.components$, this.tabRefs.changes]).pipe( | ||
this.tabs$ = combineLatest([ | ||
this.components$, | ||
this.tabRefs.changes.pipe(startWith(this.tabRefs)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice find! Are we able to add an e2e test for the empty order history case just to make sure we have coverage?
No description provided.