From 49f60109053b0e68165afeb3392fb0e5f6fe1214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 26 Jul 2019 09:08:01 +0200 Subject: [PATCH] pagedlist: fix refresh on wrapped components --- react/features/base/react/components/native/PagedList.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/react/features/base/react/components/native/PagedList.js b/react/features/base/react/components/native/PagedList.js index bad5870b4..47d9359a3 100644 --- a/react/features/base/react/components/native/PagedList.js +++ b/react/features/base/react/components/native/PagedList.js @@ -147,7 +147,10 @@ class PagedList extends Component { let 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); }