Skip to content
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

Return Not found if either product or shop are missing #696

Merged
merged 1 commit into from
Jul 8, 2020

Conversation

janus-reith
Copy link
Collaborator

@janus-reith janus-reith commented Jul 8, 2020

Signed-off-by: Janus Reith mail@janusreith.de

Resolves #695
Impact: critical
Type: bugfix

Issue

This should fix building the pdp for the default slug "-" during build

Solution

If there is no product, the further tree of components in the tree shouldn't render, and a "Not found" message is shown instead.
Instead of checking if both product and shop are missing, return that message each time one of both is missing.

Testing

  1. Run the production build
  2. Observe that the build finished properly

Signed-off-by: Janus Reith <mail@janusreith.de>
@willopez willopez self-requested a review July 8, 2020 19:44
Copy link
Member

@willopez willopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and thanks!

@willopez willopez merged commit 989c62a into reactioncommerce:trunk Jul 8, 2020
@kieckhafer kieckhafer mentioned this pull request Sep 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Builds currently fail due to the page for the default product slug rendering the ProductDetail component
2 participants