[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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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