diff --git a/admin/src/react-components/service-editor.js b/admin/src/react-components/service-editor.js index 10348f8ae8..050766a4e5 100644 --- a/admin/src/react-components/service-editor.js +++ b/admin/src/react-components/service-editor.js @@ -24,7 +24,7 @@ import LinearProgress from "@material-ui/core/LinearProgress"; import clsx from "classnames"; import { Title } from "react-admin"; import theme from "../utils/sample-theme"; -import { store } from "hubs/src/utils/store-instance"; +import { getStore } from "hubs/src/utils/store-instance"; import withCommonStyles from "../utils/with-common-styles"; import { getEditableConfig, @@ -649,6 +649,7 @@ const AppConfigEditor = withStyles(styles)( class AppConfigEditor extends ConfigurationEditor { constructor(props) { super(props); + const store = getStore(); if (store.state && store.state.credentials && store.state.credentials.token) { AppConfigUtils.setAuthToken(store.state.credentials.token); }