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

[sitecore-jss-react] Fix rendering issue in components using withPlaceholder #1349

Merged
merged 2 commits into from
Feb 21, 2023

Conversation

addy-pathania
Copy link
Contributor

@addy-pathania addy-pathania commented Feb 17, 2023

This fixes the rendering issueWhen additional params are configured in sitecore, the the components using the withPlaceholder HOC crashes because the current implementation of PlaceholderCommon assumes that the params would always be present on any rendering which is not the case as it is an optional property.

Description / Motivation

Testing Details

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Copy link
Contributor

@art-alexeyenko art-alexeyenko left a comment

Choose a reason for hiding this comment

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

Looks like a good solution!
Just one small comment below.

Copy link
Contributor

@art-alexeyenko art-alexeyenko left a comment

Choose a reason for hiding this comment

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

👍

@art-alexeyenko art-alexeyenko merged commit 1bec954 into dev Feb 21, 2023
@art-alexeyenko art-alexeyenko deleted the fix/566128-rendering-error-react branch February 21, 2023 18:48
illiakovalenko pushed a commit that referenced this pull request Mar 14, 2023
…eholder (#1349)

* fix placeholderCommon, add unit tests
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.

withPlaceholder crashes when the rendering doesn't have any rendering parameters
2 participants