Merge branch 'master' into bugfix/groupbys-in-alert-rule
commit
d6dd163eca
|
@ -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" />
|
||||
|
|
Loading…
Reference in New Issue