fix(ui) - check for sso details on logout
This commit is contained in:
parent
c2a1d2708e
commit
5f3f46d58c
1 changed files with 2 additions and 6 deletions
|
|
@ -86,15 +86,11 @@ class Router extends React.Component {
|
|||
}
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
if (prevProps.email !== this.props.email) {
|
||||
this.onLoginLogout();
|
||||
if (prevProps.email !== this.props.email && !this.props.email) {
|
||||
this.props.fetchTenants();
|
||||
}
|
||||
}
|
||||
|
||||
onLoginLogout() {
|
||||
const { email, account, organisation } = this.props;
|
||||
}
|
||||
|
||||
render() {
|
||||
const { isLoggedIn, jwt, siteId, sites, loading, changePassword, location, existingTenant, onboarding } = this.props;
|
||||
const siteIdList = sites.map(({ id }) => id).toJS();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue