Update to rerender on item change

Refreshes the webpart when an item is changed within the properties panel
This commit is contained in:
Omar 2021-07-29 10:25:01 +01:00
parent e43321bcc2
commit 6acf4addf4
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ export default class HeroWebpart extends React.Component<IHeroWebpartProps, IHer
// If properties have changed bind it and update webpart
if(this.props.items !== prevProps.items || this.state.items !== prevState.items)
{
this.setState({items:this.props.items})
this.setState({items:this.props.items});
}
}