fix remote schema headers configuration in console (#2847)

This commit is contained in:
Rishichandra Wawhal 2019-09-09 13:57:07 +05:30 committed by Rikin Kachhia
parent 0c0a2d6288
commit c343361f02

View File

@ -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 {