Skip to content

Commit

Permalink
Fix forms for control panels.
Browse files Browse the repository at this point in the history
  • Loading branch information
robgietema committed Feb 6, 2024
1 parent be7664d commit 441d975
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/volto/src/components/manage/Form/Form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,10 @@ class Form extends Component {
this.props.onChangeFormData(this.state.formData);
}
}
if (!isEqual(this.props.globalData, this.state.formData)) {
if (
this.props.global &&
!isEqual(this.props.globalData, this.state.formData)
) {
this.setState({
formData: this.props.globalData,
});
Expand Down

0 comments on commit 441d975

Please sign in to comment.