diff --git a/public/pages/Destinations/components/createDestinations/CustomWebhook/HeaderParamsEditor.js b/public/pages/Destinations/components/createDestinations/CustomWebhook/HeaderParamsEditor.js index d3bc57a6..4511c6f5 100644 --- a/public/pages/Destinations/components/createDestinations/CustomWebhook/HeaderParamsEditor.js +++ b/public/pages/Destinations/components/createDestinations/CustomWebhook/HeaderParamsEditor.js @@ -68,7 +68,7 @@ const HeaderParamsEditor = ({ type, headerParams }) => ( validateOnChange={true} render={arrayHelpers => ( arrayHelpers.push({})} + onAdd={() => arrayHelpers.push({ key: '', value: '' })} onRemove={index => index !== 0 && arrayHelpers.remove(index)} items={headerParams} name={`${type}.headerParams`} diff --git a/public/pages/Destinations/components/createDestinations/CustomWebhook/QueryParamsEditor.js b/public/pages/Destinations/components/createDestinations/CustomWebhook/QueryParamsEditor.js index 55feb3a4..5457712f 100644 --- a/public/pages/Destinations/components/createDestinations/CustomWebhook/QueryParamsEditor.js +++ b/public/pages/Destinations/components/createDestinations/CustomWebhook/QueryParamsEditor.js @@ -64,7 +64,7 @@ const QueryParamsEditor = ({ type, queryParams }) => ( render={arrayHelpers => ( arrayHelpers.push({})} + onAdd={() => arrayHelpers.push({ key: '', value: '' })} onRemove={index => arrayHelpers.remove(index)} items={queryParams} name={`${type}.queryParams`}