@trudb/tru-common-lib 0.2.272 → 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.
|
@@ -7796,7 +7796,7 @@ class TruDataGrid {
|
|
|
7796
7796
|
});
|
|
7797
7797
|
}
|
|
7798
7798
|
if (change.changeOperation === 'D') {
|
|
7799
|
-
this.api.forEachNode(
|
|
7799
|
+
this.api.forEachNode((rowNode) => {
|
|
7800
7800
|
if (rowNode.data.$entity.Ref === change.tableRef) {
|
|
7801
7801
|
rowNodesToRemove.push(rowNode.data);
|
|
7802
7802
|
}
|
|
@@ -7804,13 +7804,11 @@ class TruDataGrid {
|
|
|
7804
7804
|
}
|
|
7805
7805
|
});
|
|
7806
7806
|
if (rowNodesToAdd.length) {
|
|
7807
|
-
this.api.applyTransaction({ add: rowNodesToAdd });
|
|
7808
7807
|
this.runSearch();
|
|
7809
7808
|
}
|
|
7810
7809
|
if (rowNodesToRemove.length) {
|
|
7811
7810
|
this.api.applyTransaction({ remove: rowNodesToRemove });
|
|
7812
7811
|
}
|
|
7813
|
-
this.api.refreshCells({ force: true });
|
|
7814
7812
|
}));
|
|
7815
7813
|
// Listen for entities added elsewhere in the app
|
|
7816
7814
|
// Merge this logic with addEntity() logic below
|