@trudb/tru-common-lib 0.2.233 → 0.2.234
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,6 @@ class TruDataGrid {
|
|
|
7796
7796
|
this.subs.push(this.dataContext.onEntityAdded().subscribe((changeArgs) => {
|
|
7797
7797
|
if (!changeArgs.entity || this.isActive)
|
|
7798
7798
|
return;
|
|
7799
|
-
let rowNodesToAdd = [];
|
|
7800
7799
|
let entity;
|
|
7801
7800
|
if (this.gridType === TruDataGridTypes.DetailManyToMany)
|
|
7802
7801
|
entity = this.dataContext.entityAccess().searchByRefCacheOnly(this.config.resultConfig.entityManyToManyType, changeArgs.entity.Ref, true);
|
|
@@ -7809,9 +7808,9 @@ class TruDataGrid {
|
|
|
7809
7808
|
entityAlreadyInGrid = changeArgs.entity;
|
|
7810
7809
|
});
|
|
7811
7810
|
if (!entityAlreadyInGrid) {
|
|
7812
|
-
|
|
7813
|
-
this.rowData.unshift(
|
|
7814
|
-
this.api.applyTransaction({ add:
|
|
7811
|
+
let enhancedEntity = this.enhanceRowDataForEntity(entity);
|
|
7812
|
+
this.rowData.unshift(enhancedEntity);
|
|
7813
|
+
this.api.applyTransaction({ add: [enhancedEntity], addIndex: 0 });
|
|
7815
7814
|
}
|
|
7816
7815
|
}
|
|
7817
7816
|
}));
|