@trudb/tru-common-lib 0.2.235 → 0.2.237
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.
|
@@ -7813,7 +7813,7 @@ class TruDataGrid {
|
|
|
7813
7813
|
if (!entityAlreadyInGrid) {
|
|
7814
7814
|
let enhancedEntity = this.enhanceRowDataForEntity(entity);
|
|
7815
7815
|
this.rowData.unshift(enhancedEntity);
|
|
7816
|
-
this.api.applyTransaction({ add: [enhancedEntity]
|
|
7816
|
+
this.api.applyTransaction({ add: [enhancedEntity] });
|
|
7817
7817
|
}
|
|
7818
7818
|
}
|
|
7819
7819
|
}));
|
|
@@ -7965,7 +7965,10 @@ class TruDataGrid {
|
|
|
7965
7965
|
else {
|
|
7966
7966
|
let enhancedEntity = this.enhanceRowDataForEntity(newEntity);
|
|
7967
7967
|
this.rowData.unshift(enhancedEntity);
|
|
7968
|
-
|
|
7968
|
+
if (dataNotification)
|
|
7969
|
+
this.api.applyTransaction({ add: [enhancedEntity] });
|
|
7970
|
+
else
|
|
7971
|
+
this.api.applyTransaction({ add: [enhancedEntity], addIndex: 0 });
|
|
7969
7972
|
}
|
|
7970
7973
|
};
|
|
7971
7974
|
getMergeData = (config, entityToValidate) => {
|