File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/orchestrator-ui-components/src/components/WfoForms/formFields Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -89,21 +89,21 @@ function ContactPersonName({
8989 : name ;
9090 const contactsField = useField ( useFieldName , { } , { absoluteName : true } ) [ 0 ] ;
9191
92- const customerFieldName =
93- customerKey || contactsField . field . customerKey || 'customer ' ;
92+ const customerIdFieldName =
93+ customerKey || contactsField . field . customerKey || 'customer_id ' ;
9494
9595 // Get initial value for org field if it exists (we cant really test)
9696 let customerInitialValue ;
9797 try {
98- customerInitialValue = schema . getInitialValue ( customerFieldName , { } ) ;
98+ customerInitialValue = schema . getInitialValue ( customerIdFieldName , { } ) ;
9999 } catch {
100100 customerInitialValue = '' ;
101101 }
102102
103103 const customerIdValue =
104104 customerId ||
105105 contactsField . field . customerId ||
106- get ( model , customerFieldName , customerInitialValue ) ;
106+ get ( model , customerIdFieldName , customerInitialValue ) ;
107107
108108 const [ displayAutocomplete , setDisplayAutocomplete ] = useState ( false ) ;
109109 const [ contactPersons , setContactPersons ] = useState < ContactPerson [ ] > ( [ ] ) ;
You can’t perform that action at this time.
0 commit comments