@wavemaker/app-ng-runtime 12.0.0-next.45501 → 12.0.0-next.45752

Sign up to get free protection for your applications and to get access to all the features.
@@ -665,12 +665,12 @@ class TableComponent extends StylableComponent {
665
665
  this.callDataGridMethod('applyRowNgClass', getConditionalClasses(nv, ov), index);
666
666
  }, watchName));
667
667
  },
668
- registerColNgClassWatcher: (rowData, colDef, rowIndex, colIndex) => {
668
+ registerColNgClassWatcher: (rowData, colDef, rowIndex, colIndex, summaryRow) => {
669
669
  if (!colDef['col-ng-class']) {
670
670
  return;
671
671
  }
672
672
  const row = this.getClonedRowObject(rowData);
673
- const watchName = `${this.widgetId}_colNgClass_${rowIndex}_${colIndex}`;
673
+ const watchName = summaryRow ? `${this.widgetId}_summaryRow_colNgClass_${rowIndex}_${colIndex}` : `${this.widgetId}_colNgClass_${rowIndex}_${colIndex}`;
674
674
  $unwatch(watchName);
675
675
  //[Todo-CSP]: generate watcher expr in page if col-ng-class attr is present for table
676
676
  this.registerDestroyListener($watch(colDef['col-ng-class'], this.viewParent, { row }, (nv, ov) => {