Fix app staying in spinner by fixing where currentOrganization is gotten from

pull/10616/head
Jared Scheib 2017-11-08 10:41:01 -08:00
parent 0b9bf0a68b
commit 3b4362be92
1 changed files with 6 additions and 5 deletions

View File

@ -46,10 +46,11 @@ const CheckSources = React.createClass({
errorThrown: func.isRequired,
auth: shape({
isUsingAuth: bool,
me: shape(),
currentOrganization: shape({
name: string.isRequired,
id: string.isRequired,
me: shape({
currentOrganization: shape({
name: string.isRequired,
id: string.isRequired,
}),
}),
}),
},
@ -149,7 +150,7 @@ const CheckSources = React.createClass({
const {
params,
sources,
auth: {isUsingAuth, me, currentOrganization},
auth: {isUsingAuth, me, me: {currentOrganization}},
} = this.props
const {isFetching} = this.state
const source = sources.find(s => s.id === params.sourceID)