Merge pull request #13383 from influxdata/fix/switch-orgs-close

Fix sidenav menu closing when switching orgs
pull/13385/head
Iris Scholten 2019-04-12 15:27:17 -07:00 committed by GitHub
commit 66cd6dd1ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -6,7 +6,6 @@ import {Link} from 'react-router'
import {NavMenu} from '@influxdata/clockface'
import {Organization} from '@influxdata/influx'
import CloudFeatureFlag from 'src/shared/components/CloudFeatureFlag'
import DapperScrollbars from 'src/shared/components/dapperScrollbars/DapperScrollbars'
import SortingHat from 'src/shared/components/sorting_hat/SortingHat'
interface Props {
@ -70,7 +69,7 @@ class AccountNavSubItem extends PureComponent<Props> {
const {closeOrganizationsView} = this.props
return (
<DapperScrollbars>
<>
{orgs.reduce(
(acc, org) => {
acc.push(
@ -104,7 +103,7 @@ class AccountNavSubItem extends PureComponent<Props> {
/>,
]
)}
</DapperScrollbars>
</>
)
}
}