[MM-25681] fix reload (#1308)

This commit is contained in:
Guillermo Vayá
2020-06-02 11:42:27 +02:00
committed by GitHub
parent a59c553465
commit a6e6f149e1

View File

@@ -219,8 +219,10 @@ export default class MattermostView extends React.Component {
isLoaded: false, isLoaded: false,
}); });
const webview = this.webviewRef.current; const webview = this.webviewRef.current;
if (webview) {
webview.reload(); webview.reload();
} }
}
clearCacheAndReload = () => { clearCacheAndReload = () => {
this.setState({ this.setState({