Fix group selection

This commit is contained in:
Arnaud Vergnet 2021-05-10 21:34:07 +02:00
parent f6f1a5519e
commit d3a48d95c3

View file

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