From b22af28a1f989ebf89546f9c586a91030c5b5fb4 Mon Sep 17 00:00:00 2001 From: SleepWalker Date: Sat, 10 Nov 2018 11:51:08 +0200 Subject: [PATCH] clear location.hash when clicking on active app item --- src/components/dev/apps/ApplicationsIndex.js | 1 - src/components/dev/apps/list/ApplicationItem.js | 1 - src/components/dev/apps/list/ApplicationsList.js | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/dev/apps/ApplicationsIndex.js b/src/components/dev/apps/ApplicationsIndex.js index 205624b..54cddb9 100644 --- a/src/components/dev/apps/ApplicationsIndex.js +++ b/src/components/dev/apps/ApplicationsIndex.js @@ -1,5 +1,4 @@ // @flow -import type { Node } from 'react'; import type { OauthAppResponse } from 'services/api/oauth'; import React, { Component } from 'react'; import { FormattedMessage as Message } from 'react-intl'; diff --git a/src/components/dev/apps/list/ApplicationItem.js b/src/components/dev/apps/list/ApplicationItem.js index 8f50345..aa8a5a2 100644 --- a/src/components/dev/apps/list/ApplicationItem.js +++ b/src/components/dev/apps/list/ApplicationItem.js @@ -1,5 +1,4 @@ // @flow -import type { Node } from 'react'; import type { OauthAppResponse } from 'services/api/oauth'; import React, { Component } from 'react'; import { FormattedMessage as Message } from 'react-intl'; diff --git a/src/components/dev/apps/list/ApplicationsList.js b/src/components/dev/apps/list/ApplicationsList.js index 9c7d282..c81106d 100644 --- a/src/components/dev/apps/list/ApplicationsList.js +++ b/src/components/dev/apps/list/ApplicationsList.js @@ -95,7 +95,7 @@ export default class ApplicationsList extends React.Component { const expandedApp = this.state.expandedApp === clientId ? null : clientId; - if (initialClientId !== clientId) { + if (initialClientId) { resetClientId(); }