From 3b4362be92ce8672718e41fd1981eb12290acf77 Mon Sep 17 00:00:00 2001 From: Jared Scheib Date: Wed, 8 Nov 2017 10:41:01 -0800 Subject: [PATCH] Fix app staying in spinner by fixing where currentOrganization is gotten from --- ui/src/CheckSources.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/ui/src/CheckSources.js b/ui/src/CheckSources.js index 3d1838d64b..5210d6f7c8 100644 --- a/ui/src/CheckSources.js +++ b/ui/src/CheckSources.js @@ -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)