From c52fa3a7d8204f012d1ccefdd54ef1069821a164 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Thu, 16 Apr 2020 00:05:58 +0200 Subject: [PATCH] Fix crash on group selection --- src/screens/Websites/PlanexScreen.js | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/src/screens/Websites/PlanexScreen.js b/src/screens/Websites/PlanexScreen.js index 2687410..308342d 100644 --- a/src/screens/Websites/PlanexScreen.js +++ b/src/screens/Websites/PlanexScreen.js @@ -261,8 +261,19 @@ class PlanexScreen extends React.Component { }; getWebView() { - if (this.state.currentGroup.id !== -1) { - return ( + const showWebview = this.state.currentGroup.id !== -1; + + return ( + + {!showWebview + ? + : null} + { onMessage={this.onMessage} onScroll={this.onScroll} /> - ); - } else { - return - } - + + ); } render() {