File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
force-app/main/default/lwc/lwcRelatedList Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ export default class LwcDatatable extends NavigationMixin(LightningElement(Light
9090 } )
9191 . then ( ( data ) => {
9292 if ( data ) {
93- //console.log("return data:::", data);
9493 const { records, cols, count, iconName } = formatData (
9594 this ,
9695 data
@@ -128,22 +127,19 @@ export default class LwcDatatable extends NavigationMixin(LightningElement(Light
128127 //on save. This will enable inline editing &
129128 //show standard cancel & save button
130129 copyDraftValues . forEach ( item => {
131- console . log ( item ) ;
132130 if ( item . Id === updateItem . Id ) {
133131 item [ fieldName ] = updateItem [ fieldName ] ;
134132
135133 draftValueChanged = true ;
136134 }
137135 } ) ;
138-
139- console . log ( draftValueChanged ) ;
136+
140137 if ( draftValueChanged ) {
141138 this . draftValues = [ ...copyDraftValues ] ;
142139 } else {
143140 this . draftValues = [ ...copyDraftValues , updateItem ] ;
144141 }
145142
146- console . log ( )
147143 }
148144
149145 fetchRecords ( ) {
You can’t perform that action at this time.
0 commit comments