Merge branch 'fix/cleanup' into 'release'

Cleanup fixes

See merge request theappsmith/internal-tools-client!483
This commit is contained in:
Hetu Nandu 2020-04-14 15:54:02 +00:00
commit 13a97451d9
3 changed files with 5 additions and 8 deletions

View File

@ -25,7 +25,7 @@ const KeyValueRow = (props: Props & WrappedFieldArrayProps) => {
props.fields.push({ key: "", value: "" });
}
}
}, [props.fields]);
}, [props.fields, props.pushFields]);
return (
<React.Fragment>
@ -68,7 +68,6 @@ const KeyValueRow = (props: Props & WrappedFieldArrayProps) => {
rightIcon={
props.actionConfig[index].description && props.rightIcon
}
noArrows
description={props.actionConfig[index].description}
disabled={
props.actionConfig[index].editable ||

View File

@ -24,11 +24,10 @@ export function* curlImportSaga(action: ReduxAction<CurlImportRequest>) {
const { type, pageId, name } = action.payload;
let { curl } = action.payload;
try {
if (curl.charAt(0) === '"' && curl.charAt(curl.length - 1) === '"') {
curl = curl;
} else {
curl = '"' + curl + '"';
}
// Transform to add quotes if not present
curl = `${curl.charAt(0) !== '"' ? '"' : ""}${curl}${
curl.charAt(curl.length - 1) !== '"' ? '"' : ""
}`;
const request: CurlImportRequest = { type, pageId, name, curl };
const response: ApiResponse = yield CurlImportApi.curlImport(request);

View File

@ -1,4 +1,3 @@
import { RestAction } from "api/ActionAPI";
import { POST_BODY_FORMAT_OPTIONS } from "constants/ApiEditorConstants";
export const transformRestAction = (data: any): any => {