Update to rerender on item change
Refreshes the webpart when an item is changed within the properties panel
This commit is contained in:
parent
e43321bcc2
commit
6acf4addf4
|
@ -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});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue