@trudb/tru-common-lib 0.2.271 → 0.2.273

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7789,14 +7789,14 @@ class TruDataGrid {
7789
7789
  let rowNodesToRemove = [];
7790
7790
  dataChange.dataChanges.forEach((change) => {
7791
7791
  if (change.changeOperation === 'I') {
7792
- this.api.forEachNode(function (rowNode) {
7792
+ this.api.forEachNode((rowNode) => {
7793
7793
  if (rowNode.data.$entity.Ref === change.tableRef) {
7794
7794
  rowNodesToAdd.push(rowNode.data);
7795
7795
  }
7796
7796
  });
7797
7797
  }
7798
7798
  if (change.changeOperation === 'D') {
7799
- this.api.forEachNode(function (rowNode) {
7799
+ this.api.forEachNode((rowNode) => {
7800
7800
  if (rowNode.data.$entity.Ref === change.tableRef) {
7801
7801
  rowNodesToRemove.push(rowNode.data);
7802
7802
  }
@@ -7804,14 +7804,11 @@ class TruDataGrid {
7804
7804
  }
7805
7805
  });
7806
7806
  if (rowNodesToAdd.length) {
7807
- this.api.applyTransaction({ add: rowNodesToAdd });
7808
- this.api.refreshCells({ force: true });
7807
+ this.runSearch();
7809
7808
  }
7810
7809
  if (rowNodesToRemove.length) {
7811
7810
  this.api.applyTransaction({ remove: rowNodesToRemove });
7812
- this.api.refreshCells({ force: true });
7813
7811
  }
7814
- this.api.refreshCells({ force: true });
7815
7812
  }));
7816
7813
  // Listen for entities added elsewhere in the app
7817
7814
  // Merge this logic with addEntity() logic below