Skip to content

Commit 5c7a1ab

Browse files
committed
fix: perfexCRM custom tagify field issue fixed issue fixed
1 parent edb563e commit 5c7a1ab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

frontend-dev/src/components/AllIntegrations/PerfexCRM/IntegrationHelpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ export const handleFieldMapping = (event, index, conftTmp, setConf) => {
2727

2828
export const handleCustomValue = (event, index, conftTmp, setConf) => {
2929
const newConf = { ...conftTmp }
30-
newConf.field_map[index].customValue = event.target.value
30+
newConf.field_map[index].customValue = event?.target?.value || event
3131
setConf({ ...newConf })
3232
}
3333

3434
export const handleCustomField = (event, index, conftTmp, setConf, fieldValue) => {
3535
const newConf = { ...conftTmp }
36-
newConf.field_map[index][fieldValue] = event.target.value
36+
newConf.field_map[index][fieldValue] = event?.target?.value || event
3737
setConf({ ...newConf })
3838
}

frontend-dev/src/components/AllIntegrations/PerfexCRM/PerfexCRMFieldMap.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default function PerfexCRMFieldMap({ i, formFields, field, perfexCRMConf,
5858
label={__('Custom Value', 'bit-integrations')}
5959
className="mr-2"
6060
type="text"
61-
value={field.customValue}
61+
value={field?.customValue || ''}
6262
placeholder={__('Custom Value', 'bit-integrations')}
6363
formFields={formFields}
6464
/>

0 commit comments

Comments
 (0)