Browse Source

Fix group selection

Arnaud Vergnet 2 years ago
parent
commit
d3a48d95c3
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/screens/Planex/PlanexScreen.tsx

+ 2
- 2
src/screens/Planex/PlanexScreen.tsx View File

@@ -190,7 +190,7 @@ function PlanexScreen(props: Props) {
190 190
         navigation.dispatch(CommonActions.setParams({ group: undefined }));
191 191
       }
192 192
       // eslint-disable-next-line react-hooks/exhaustive-deps
193
-    }, [])
193
+    }, [props.route.params])
194 194
   );
195 195
   /**
196 196
    * Gets the Webview, with an error view on top if no group is selected.
@@ -388,7 +388,7 @@ function PlanexScreen(props: Props) {
388 388
         navigation={navigation}
389 389
         ref={barRef}
390 390
         onPress={sendMessage}
391
-        seekAttention={currentGroup !== undefined}
391
+        seekAttention={currentGroup === undefined}
392 392
       />
393 393
     </View>
394 394
   );

Loading…
Cancel
Save