mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 09:51:59 +03:00
fix remote schema headers configuration in console (#2847)
This commit is contained in:
parent
0c0a2d6288
commit
c343361f02
@ -58,7 +58,7 @@ const inputChange = (type, data) => {
|
|||||||
return dispatch => dispatch({ type: inputEventMap[type], data });
|
return dispatch => dispatch({ type: inputEventMap[type], data });
|
||||||
};
|
};
|
||||||
|
|
||||||
const getHeaderEvents = generateHeaderSyms('CUSTOM_REMOTE_SCHEMA');
|
const getHeaderEvents = generateHeaderSyms('REMOTE_SCHEMA');
|
||||||
/* */
|
/* */
|
||||||
|
|
||||||
const getReqHeader = headers => {
|
const getReqHeader = headers => {
|
||||||
@ -161,6 +161,7 @@ const addRemoteSchema = () => {
|
|||||||
resolveObj.definition.headers = [
|
resolveObj.definition.headers = [
|
||||||
...getReqHeader(getState().remoteSchemas.headerData.headers),
|
...getReqHeader(getState().remoteSchemas.headerData.headers),
|
||||||
];
|
];
|
||||||
|
|
||||||
if (resolveObj.definition.url) {
|
if (resolveObj.definition.url) {
|
||||||
delete resolveObj.definition.url_from_env;
|
delete resolveObj.definition.url_from_env;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user