Skip to content

Commit

Permalink
Merge pull request #7261 from SalesforceFoundation/feature/254__W-152…
Browse files Browse the repository at this point in the history
…33417-DI-field-values-not-update-with-null-values

W-15233417 - Gift Entry does not update to override null DI field values
  • Loading branch information
lparrott authored Nov 4, 2024
2 parents 19e6a1d + 2d8bda2 commit 83ef55a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions force-app/main/default/lwc/geFormRenderer/geFormRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2651,6 +2651,11 @@ export default class GeFormRenderer extends LightningElement{
? this.CUSTOM_LABELS.geTextUpdating
: this.CUSTOM_LABELS.geTextSaving;
delete dataImportFromFormState[apiNameFor(PAYMENT_AUTHORIZE_TOKEN)];
Object.keys(dataImportFromFormState).forEach((field)=>{
if(dataImportFromFormState[field] === undefined) {
dataImportFromFormState[field] = null;
}
})
const upsertResponse = await upsertDataImport({
dataImport: JSON.stringify(dataImportFromFormState)
});
Expand Down

0 comments on commit 83ef55a

Please sign in to comment.