From f949576274bc3de8b92b44d6d044246a1b8a872d Mon Sep 17 00:00:00 2001 From: Matias Date: Wed, 29 May 2019 11:26:41 -0300 Subject: [PATCH] Getting ecosystem from canvas app --- client/src/auth/index.js | 2 -- client/src/graphql/EcosystemQuery.js | 1 + client/src/index.js | 3 --- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/client/src/auth/index.js b/client/src/auth/index.js index 85c260e34..9b35d50bf 100644 --- a/client/src/auth/index.js +++ b/client/src/auth/index.js @@ -252,8 +252,6 @@ class Auth { } setItem('user', JSON.stringify(user)) - await setInitialEcosystem() - window.location.href = '/' return response.data } catch (err) { diff --git a/client/src/graphql/EcosystemQuery.js b/client/src/graphql/EcosystemQuery.js index 70c8412f9..5f0ab6ef4 100644 --- a/client/src/graphql/EcosystemQuery.js +++ b/client/src/graphql/EcosystemQuery.js @@ -17,6 +17,7 @@ export const ECOSYSTEM_QUERY = gql` codeName displayName type + profilePicture repo configFile products{ diff --git a/client/src/index.js b/client/src/index.js index 7289c47cc..acbab7067 100644 --- a/client/src/index.js +++ b/client/src/index.js @@ -5,7 +5,6 @@ import MasterApp from './App' import { createStore } from 'redux' import { Provider } from 'react-redux' import rootReducer from './reducers/rootReducer' -import { setInitialEcosystem } from './utils/ecosystem' const store = createStore(rootReducer) @@ -13,8 +12,6 @@ if (process.env.NODE_ENV !== 'production') { window.localStorage.setItem('debug', 'advanced-algos:*') } -setInitialEcosystem() - ReactDOM.render(