Skip to content

Commit

Permalink
#597453: [sitecore-jss-react] fixed rendering with two and more dyna…
Browse files Browse the repository at this point in the history
…mic placeholders
  • Loading branch information
sc-ruslanmatkovskyi committed Oct 26, 2023
1 parent 3875cdc commit 38029de
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ export class PlaceholderCommon<T extends PlaceholderProps> extends React.Compone
Object.keys(rendering.placeholders).forEach((placeholder) => {
if (
placeholder.indexOf('{*}') !== -1 &&
!EXCLUDE_PLACEHOLDERS_RENDER.some((pattern) => name.search(pattern) !== -1)
!EXCLUDE_PLACEHOLDERS_RENDER.some((pattern) => name.search(pattern) !== -1) &&
name.replace(/[^a-zA-Z]*/gi, '') === placeholder.replace(/[^a-zA-Z]*/gi, '')
) {
rendering.placeholders[name] = rendering.placeholders[placeholder];
delete rendering.placeholders[placeholder];
Expand Down

0 comments on commit 38029de

Please sign in to comment.