@trudb/tru-common-lib 0.2.334 → 0.2.336
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.
|
@@ -7818,7 +7818,7 @@ class TruDataGrid {
|
|
|
7818
7818
|
if (change.changeOperation === 'D') {
|
|
7819
7819
|
this.api.forEachNode((rowNode) => {
|
|
7820
7820
|
if (rowNode.data.$entity.Ref === change.tableRef) {
|
|
7821
|
-
rowNodesToRemove.push({
|
|
7821
|
+
rowNodesToRemove.push({ $entity: { Ref: rowNode.data.$entity.Ref.toString() } });
|
|
7822
7822
|
}
|
|
7823
7823
|
});
|
|
7824
7824
|
}
|
|
@@ -7827,7 +7827,7 @@ class TruDataGrid {
|
|
|
7827
7827
|
if (rowNode.data.$entity.Ref === change.tableRef) {
|
|
7828
7828
|
let results = this.dataContext.entityAccess().searchByRefArrayCacheOnly(this.config.resultConfig.entityType, this.latestSetupQuery, [rowNode.data.$entity.Ref]);
|
|
7829
7829
|
if (!results)
|
|
7830
|
-
rowNodesToRemove.push({
|
|
7830
|
+
rowNodesToRemove.push({ $entity: { Ref: rowNode.data.$entity.Ref.toString() } });
|
|
7831
7831
|
}
|
|
7832
7832
|
});
|
|
7833
7833
|
}
|
|
@@ -8227,7 +8227,7 @@ class TruDataGrid {
|
|
|
8227
8227
|
return true;
|
|
8228
8228
|
};
|
|
8229
8229
|
onAdd = () => {
|
|
8230
|
-
this.dataContext.entityAccess().add(this.config.resultConfig.entityType);
|
|
8230
|
+
this.addEntity(this.dataContext.entityAccess().add(this.config.resultConfig.entityType));
|
|
8231
8231
|
};
|
|
8232
8232
|
onDelete = () => {
|
|
8233
8233
|
let selectedRows = this.api.getSelectedRows();
|