Rerender paginated list on collection update
Rerender paginated list on collection update
This commit is contained in:
parent
6acf4addf4
commit
9572960ff6
|
@ -126,7 +126,8 @@ export default class HeroWebpartWebPart extends BaseClientSideWebPart<IHeroWebpa
|
|||
hideLinkUploadTab: true
|
||||
})
|
||||
);
|
||||
}
|
||||
},
|
||||
required: true
|
||||
}
|
||||
],
|
||||
disabled: false
|
||||
|
|
|
@ -74,6 +74,9 @@ export default class HeroWebpart extends React.Component<IHeroWebpartProps, IHer
|
|||
if(this.props.items !== prevProps.items || this.state.items !== prevState.items)
|
||||
{
|
||||
this.setState({items:this.props.items});
|
||||
if(this.props.showAllHero){
|
||||
this._getPage(this.state.currentPage);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue