fix: dynamic field selector option values
This commit is contained in:
@@ -19,14 +19,14 @@ export const DynamicFieldSelector: React.FC<TextField> = (props) => {
|
|||||||
const allNonPaymentFields = fields.map((block): SelectFieldOption | null => {
|
const allNonPaymentFields = fields.map((block): SelectFieldOption | null => {
|
||||||
const {
|
const {
|
||||||
name,
|
name,
|
||||||
id,
|
label,
|
||||||
blockType
|
blockType
|
||||||
} = block;
|
} = block;
|
||||||
|
|
||||||
if (blockType !== 'payment') {
|
if (blockType !== 'payment') {
|
||||||
return ({
|
return ({
|
||||||
label: name,
|
label,
|
||||||
value: id
|
value: name
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user