mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-07-01 04:33:23 +05:30
clear location.hash when clicking on active app item
This commit is contained in:
parent
0ad3499609
commit
b22af28a1f
|
@ -1,5 +1,4 @@
|
||||||
// @flow
|
// @flow
|
||||||
import type { Node } from 'react';
|
|
||||||
import type { OauthAppResponse } from 'services/api/oauth';
|
import type { OauthAppResponse } from 'services/api/oauth';
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { FormattedMessage as Message } from 'react-intl';
|
import { FormattedMessage as Message } from 'react-intl';
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
// @flow
|
// @flow
|
||||||
import type { Node } from 'react';
|
|
||||||
import type { OauthAppResponse } from 'services/api/oauth';
|
import type { OauthAppResponse } from 'services/api/oauth';
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { FormattedMessage as Message } from 'react-intl';
|
import { FormattedMessage as Message } from 'react-intl';
|
||||||
|
|
|
@ -95,7 +95,7 @@ export default class ApplicationsList extends React.Component<Props, State> {
|
||||||
const expandedApp
|
const expandedApp
|
||||||
= this.state.expandedApp === clientId ? null : clientId;
|
= this.state.expandedApp === clientId ? null : clientId;
|
||||||
|
|
||||||
if (initialClientId !== clientId) {
|
if (initialClientId) {
|
||||||
resetClientId();
|
resetClientId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user