Skip to content

Commit

Permalink
fix: prevent null value for lookup field
Browse files Browse the repository at this point in the history
  • Loading branch information
cafadev committed Jul 28, 2024
1 parent 219e4bb commit c1a3e15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/forms/capabilities/set-fields-values.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export class SetFieldsValuesHandler implements ISetFieldsValuesHandler {
this.setFieldValue(field, field.recordValue(recordValues))
})

settings.lookupValue = String(recordValues[settings.lookupField] || '')
const recordValue = settings.lookupField ? recordValues[settings.lookupField] || '' : ''

settings.lookupValue = String(recordValue)
}
}

0 comments on commit c1a3e15

Please sign in to comment.