@trudb/tru-common-lib 0.2.325 → 0.2.326
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.
|
@@ -7647,6 +7647,7 @@ class TruDataGrid {
|
|
|
7647
7647
|
selectedRowCount = 'Selected: 0';
|
|
7648
7648
|
api;
|
|
7649
7649
|
gridOptions = {
|
|
7650
|
+
getRowId: (params) => { return params.data.$entity?.Ref.toString(); },
|
|
7650
7651
|
context: {
|
|
7651
7652
|
grid: this
|
|
7652
7653
|
},
|
|
@@ -7817,7 +7818,7 @@ class TruDataGrid {
|
|
|
7817
7818
|
if (change.changeOperation === 'D') {
|
|
7818
7819
|
this.api.forEachNode((rowNode) => {
|
|
7819
7820
|
if (rowNode.data.$entity.Ref === change.tableRef) {
|
|
7820
|
-
rowNodesToRemove.push(rowNode);
|
|
7821
|
+
rowNodesToRemove.push({ Ref: rowNode.data.$entity.Ref });
|
|
7821
7822
|
}
|
|
7822
7823
|
});
|
|
7823
7824
|
}
|
|
@@ -7826,7 +7827,7 @@ class TruDataGrid {
|
|
|
7826
7827
|
if (rowNode.data.$entity.Ref === change.tableRef) {
|
|
7827
7828
|
let results = this.dataContext.entityAccess().searchByRefArrayCacheOnly(this.config.resultConfig.entityType, this.latestSetupQuery, [rowNode.data.$entity.Ref]);
|
|
7828
7829
|
if (!results)
|
|
7829
|
-
rowNodesToRemove.push(rowNode);
|
|
7830
|
+
rowNodesToRemove.push({ Ref: rowNode.data.$entity.Ref });
|
|
7830
7831
|
}
|
|
7831
7832
|
});
|
|
7832
7833
|
}
|