From 3bb696e4d388bd62ab0ffab81a26c92e8c2a19ee Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Mon, 22 Oct 2018 09:50:12 +0100 Subject: [PATCH] Do not fetch processes/plugins/services at each route change Version is not fetched anymore, we cannot use them as an anchore --- embark-ui/src/containers/AppContainer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/embark-ui/src/containers/AppContainer.js b/embark-ui/src/containers/AppContainer.js index 6c32e03bb..593699c41 100644 --- a/embark-ui/src/containers/AppContainer.js +++ b/embark-ui/src/containers/AppContainer.js @@ -18,7 +18,7 @@ import { import {LIGHT_THEME, DARK_THEME} from '../constants'; -import { getCredentials, getAuthenticationError, getVersions, getTheme } from '../reducers/selectors'; +import { getCredentials, getAuthenticationError, getProcesses, getTheme } from '../reducers/selectors'; const qs = require('qs'); @@ -114,7 +114,7 @@ AppContainer.propTypes = { function mapStateToProps(state) { return { - initialized: getVersions(state).length > 0, + initialized: getProcesses(state).length > 0, credentials: getCredentials(state), authenticationError: getAuthenticationError(state), theme: getTheme(state),