mirror of
https://github.com/pnp/sp-dev-fx-webparts.git
synced 2025-02-23 05:35:14 +00:00
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…
x
Reference in New Issue
Block a user