@trudb/tru-common-lib 0.2.270 → 0.2.272
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,7 +7789,7 @@ class TruDataGrid {
|
|
|
7789
7789
|
let rowNodesToRemove = [];
|
|
7790
7790
|
dataChange.dataChanges.forEach((change) => {
|
|
7791
7791
|
if (change.changeOperation === 'I') {
|
|
7792
|
-
this.api.forEachNode(
|
|
7792
|
+
this.api.forEachNode((rowNode) => {
|
|
7793
7793
|
if (rowNode.data.$entity.Ref === change.tableRef) {
|
|
7794
7794
|
rowNodesToAdd.push(rowNode.data);
|
|
7795
7795
|
}
|
|
@@ -7804,12 +7804,11 @@ class TruDataGrid {
|
|
|
7804
7804
|
}
|
|
7805
7805
|
});
|
|
7806
7806
|
if (rowNodesToAdd.length) {
|
|
7807
|
-
this.api.applyTransaction({
|
|
7808
|
-
this.
|
|
7807
|
+
this.api.applyTransaction({ add: rowNodesToAdd });
|
|
7808
|
+
this.runSearch();
|
|
7809
7809
|
}
|
|
7810
7810
|
if (rowNodesToRemove.length) {
|
|
7811
7811
|
this.api.applyTransaction({ remove: rowNodesToRemove });
|
|
7812
|
-
this.api.refreshCells({ force: true });
|
|
7813
7812
|
}
|
|
7814
7813
|
this.api.refreshCells({ force: true });
|
|
7815
7814
|
}));
|