Skip to content

Commit

Permalink
Update admin store ref
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Jun 3, 2024
1 parent 5b9ce83 commit bccf94d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/src/react-components/service-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit bccf94d

Please sign in to comment.