Merge branch 'fix/cleanup' into 'release'
Cleanup fixes See merge request theappsmith/internal-tools-client!483
This commit is contained in:
commit
13a97451d9
|
|
@ -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 ||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
import { RestAction } from "api/ActionAPI";
|
||||
import { POST_BODY_FORMAT_OPTIONS } from "constants/ApiEditorConstants";
|
||||
|
||||
export const transformRestAction = (data: any): any => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user