Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Fix invalid value for new parameters and headers on Custom Destination #73

Merged
merged 2 commits into from
Jul 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const HeaderParamsEditor = ({ type, headerParams }) => (
validateOnChange={true}
render={arrayHelpers => (
<AttributeEditor
onAdd={() => arrayHelpers.push({})}
onAdd={() => arrayHelpers.push({ key: '', value: '' })}
onRemove={index => index !== 0 && arrayHelpers.remove(index)}
items={headerParams}
name={`${type}.headerParams`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const QueryParamsEditor = ({ type, queryParams }) => (
render={arrayHelpers => (
<AttributeEditor
titleText="Query parameters"
onAdd={() => arrayHelpers.push({})}
onAdd={() => arrayHelpers.push({ key: '', value: '' })}
onRemove={index => arrayHelpers.remove(index)}
items={queryParams}
name={`${type}.queryParams`}
Expand Down