Skip to content

Commit

Permalink
Check blank values while updating batch-defaults
Browse files Browse the repository at this point in the history
Set the batch-defaults field values to `undefined` to prevent null and blank values in form elements after updating batch-defaults.
  • Loading branch information
salesforce-suyash-more committed Oct 10, 2024
1 parent 5f77083 commit e8fe16e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion force-app/main/default/lwc/geBatchWizard/geBatchWizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ export default class geBatchWizard extends NavigationMixin(LightningElement) {
batchDefaults[formElement.label] = {
objectApiName: formElement.objectApiName,
fieldApiName: formElement.fieldApiName,
value: formElement.value
value: isNotEmpty(formElement.value) ? formElement.value : undefined
};
}
}
Expand Down

0 comments on commit e8fe16e

Please sign in to comment.