diff --git a/force-app/main/default/lwc/sfpegRecordEditFlw/sfpegRecordEditFlw.js b/force-app/main/default/lwc/sfpegRecordEditFlw/sfpegRecordEditFlw.js index 471849b..fee324f 100755 --- a/force-app/main/default/lwc/sfpegRecordEditFlw/sfpegRecordEditFlw.js +++ b/force-app/main/default/lwc/sfpegRecordEditFlw/sfpegRecordEditFlw.js @@ -161,7 +161,7 @@ export default class SfpegRecordEditFlw extends LightningElement { this.lastModif = fieldName + ' from ' + oldValue + ' to ' + newValue; if (this.isDebug) console.log('handleChange: lastModif tracked ', this.lastModif); - this.newRecord[fieldName] = newValue; + this.newRecord[fieldName] = newValue?newValue:null; if (this.isDebug) console.log('handleChange: newRecord updated', this.newRecord[fieldName]); if (this.isDebug) console.log('handleChange: newRecord updated', JSON.stringify(this.newRecord)); @@ -192,4 +192,4 @@ export default class SfpegRecordEditFlw extends LightningElement { if (this.isDebug) console.log('handleCancel: END'); } -} \ No newline at end of file +}