pagedlist: fix refresh on wrapped components
This commit is contained in:
parent
1c27f567ee
commit
49f6010905
|
@ -147,7 +147,10 @@ class PagedList extends Component<Props, State> {
|
||||||
let component;
|
let component;
|
||||||
|
|
||||||
if (selectedPage && (component = selectedPage.component)) {
|
if (selectedPage && (component = selectedPage.component)) {
|
||||||
const { refresh } = component;
|
// react-i18n / react-redux wrap components and thus we cannot access
|
||||||
|
// the wrapped component's static methods directly.
|
||||||
|
const component_ = component.WrappedComponent || component;
|
||||||
|
const { refresh } = component_;
|
||||||
|
|
||||||
refresh.call(component, this.props.dispatch, isInteractive);
|
refresh.call(component, this.props.dispatch, isInteractive);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue