mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +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 });
|
||||
};
|
||||
|
||||
const getHeaderEvents = generateHeaderSyms('CUSTOM_REMOTE_SCHEMA');
|
||||
const getHeaderEvents = generateHeaderSyms('REMOTE_SCHEMA');
|
||||
/* */
|
||||
|
||||
const getReqHeader = headers => {
|
||||
@ -161,6 +161,7 @@ const addRemoteSchema = () => {
|
||||
resolveObj.definition.headers = [
|
||||
...getReqHeader(getState().remoteSchemas.headerData.headers),
|
||||
];
|
||||
|
||||
if (resolveObj.definition.url) {
|
||||
delete resolveObj.definition.url_from_env;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user