Skip to content

Commit

Permalink
Sync global state back to local form state.
Browse files Browse the repository at this point in the history
  • Loading branch information
robgietema committed Feb 6, 2024
1 parent 92483ef commit be7664d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/volto/src/components/manage/Form/Form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,11 @@ class Form extends Component {
this.props.onChangeFormData(this.state.formData);
}
}
if (!isEqual(this.props.globalData, this.state.formData)) {
this.setState({
formData: this.props.globalData,
});
}
}

/**
Expand Down

0 comments on commit be7664d

Please sign in to comment.