Skip to content

Commit

Permalink
Fix destructure of undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanMiu committed Jul 15, 2022
1 parent 82f57e8 commit a15b86f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Iframe/EditIframe.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Edit extends Component {
* @returns {undefined}
*/
componentDidMount() {
const { privacy_statement } = this.props.data.dataprotection;
const { privacy_statement } = this.props.data.dataprotection || {};
if (isString(privacy_statement)) {
this.props.onChangeBlock(this.props.block, {
...this.props.data,
Expand Down

0 comments on commit a15b86f

Please sign in to comment.