Skip to content

Commit

Permalink
fixed undefined placehodler issue (#970)
Browse files Browse the repository at this point in the history
  • Loading branch information
addy-pathania authored Mar 31, 2022
1 parent 55ca4b8 commit 4ecff7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/sitecore-jss-react/src/components/Placeholder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ class PlaceholderComponent extends PlaceholderCommon<PlaceholderComponentProps>
}

componentDidMount() {
super.componentDidMount();
if (this.isEmpty && HorizonEditor.isActive()) {
HorizonEditor.resetChromes();
}
Expand Down

0 comments on commit 4ecff7e

Please sign in to comment.