From e8fe16e3ebcd56d3c35144814210ef45a501e573 Mon Sep 17 00:00:00 2001 From: Suyash More Date: Thu, 10 Oct 2024 19:41:26 +0530 Subject: [PATCH] Check blank values while updating batch-defaults Set the batch-defaults field values to `undefined` to prevent null and blank values in form elements after updating batch-defaults. --- force-app/main/default/lwc/geBatchWizard/geBatchWizard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/force-app/main/default/lwc/geBatchWizard/geBatchWizard.js b/force-app/main/default/lwc/geBatchWizard/geBatchWizard.js index 11b75a22b89..3c31935f607 100755 --- a/force-app/main/default/lwc/geBatchWizard/geBatchWizard.js +++ b/force-app/main/default/lwc/geBatchWizard/geBatchWizard.js @@ -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 }; } }