Skip to content

Commit

Permalink
Merge branch '5.3' into 5
Browse files Browse the repository at this point in the history
github-actions[bot] committed Dec 13, 2024
2 parents 2e299cd + 3b70c8e commit 63ec666
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions client/src/components/ElementEditor/ElementList.js
Original file line number Diff line number Diff line change
@@ -30,6 +30,10 @@ class ElementList extends Component {
}

componentDidUpdate(prevProps, prevState) {
// Scenario: save/publish buttons clicked before the elemental area is rendered
if (!this.props.blocks && !prevProps.blocks) {
return;
}
// Scenario: blocks props just changed after a graphql query response updated it
if (this.props.blocks !== prevProps.blocks) {
this.resetState(prevState, false);

0 comments on commit 63ec666

Please sign in to comment.