Merge branch 'master' into bugfix/groupbys-in-alert-rule

pull/10616/head
ebb-tide 2018-05-01 18:21:07 -07:00
commit d6dd163eca
1 changed files with 3 additions and 5 deletions

View File

@ -139,7 +139,7 @@ export class CheckSources extends Component<Props, State> {
}
if (
me.superAdmin &&
_.get(me, 'superAdmin', false) &&
!organizations.find(o => o.id === currentOrganization.id)
) {
notify(copy.notifyUserRemovedFromCurrentOrg())
@ -192,13 +192,11 @@ export class CheckSources extends Component<Props, State> {
const {
params,
sources,
auth: {
isUsingAuth,
me: {currentOrganization},
},
auth: {isUsingAuth, me},
} = this.props
const {isFetching} = this.state
const source = sources.find(s => s.id === params.sourceID)
const currentOrganization = _.get(me, 'currentOrganization')
if (isFetching || !source || (isUsingAuth && !currentOrganization)) {
return <div className="page-spinner" />