Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Commit

Permalink
adjust errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcstiago committed Jun 25, 2019
1 parent a6301b4 commit 00e41c4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions unbrake-api/production/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ def get_secret(secret_name, filename):
CORS_ORIGIN_ALLOW_ALL = False

CORS_ORIGIN_WHITELIST = (
'unbrake-hom.ml', 'unbrake.ml'
'unbrake-hom.ml', 'unbrake.ml', 'api.unbrake-hom.ml'
)

CSRF_TRUSTED_ORIGINS = (
'unbrake-hom.ml', 'unbrake.ml'
'unbrake-hom.ml', 'unbrake.ml', 'api.unbrake-hom.ml'
)

LANGUAGE_CODE = 'en-us'
Expand Down
6 changes: 3 additions & 3 deletions unbrake-frontend/src/configuration/Configuration.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { withStyles } from "@material-ui/core/styles";
import { Grid, Button } from "@material-ui/core";
import PropTypes from "prop-types";
import { connect } from "react-redux";
import { reduxForm, initialize } from "redux-form";
import { reduxForm } from "redux-form";
import Request from "../utils/Request";
import { API_URL_GRAPHQL } from "../utils/Constants";
import ConfigurationForm from "./ConfigurationForm";
Expand Down Expand Up @@ -140,7 +140,7 @@ class Configuration extends React.Component {
}

handleUpDefault() {
const { sendMessage, changeConfig, dispatch } = this.props;
const { sendMessage, changeConfig } = this.props;
const url = `${API_URL_GRAPHQL}?query=query{configDefault{${query}}}`;

const method = "GET";
Expand All @@ -166,7 +166,7 @@ class Configuration extends React.Component {
changeConfig({ configId: data.id });
const configurationDefault = createConfig(data);

dispatch(initialize("configuration", configurationDefault.CONFIG_ENSAIO));
// dispatch(initialize("configuration", configurationDefault.CONFIG_ENSAIO));
this.setState({ configuration: configurationDefault });
});
}
Expand Down
2 changes: 1 addition & 1 deletion unbrake-frontend/src/utils/Constants.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const API_URL = process.env.REACT_APP_API_URL;
export const API_URL_GRAPHQL = process.env.REACT_APP_API_URL;
export const MQTT_HOST = "unbrake-hom.ml"; // process.env.REACT_APP_MQTT_HOST;
export const MQTT_HOST = "unbrake.ml"; // process.env.REACT_APP_MQTT_HOST;
export const MQTT_PORT = process.env.REACT_APP_MQTT_PORT;
export const base10 = 10;

Expand Down

0 comments on commit 00e41c4

Please sign in to comment.