@trudb/tru-common-lib 0.2.27 → 0.2.28
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.
|
@@ -6811,7 +6811,7 @@ class TruDataChangeParser {
|
|
|
6811
6811
|
if (this.entityFoundByQuery(change)) {
|
|
6812
6812
|
var entityAlreadyInResults = this.getEntityFromResults(results, change);
|
|
6813
6813
|
if (!entityAlreadyInResults.length && this.isLoaded()) {
|
|
6814
|
-
this.addEntity(entity);
|
|
6814
|
+
this.addEntity(entity, true);
|
|
6815
6815
|
}
|
|
6816
6816
|
reloadResults = true;
|
|
6817
6817
|
}
|
|
@@ -6842,13 +6842,13 @@ class TruDataChangeParser {
|
|
|
6842
6842
|
newEntity[pkeyName] = change.tableRef;
|
|
6843
6843
|
this.applyPropertyChanges(change, newEntity);
|
|
6844
6844
|
if (this.isLoaded()) {
|
|
6845
|
-
this.addEntity(newEntity);
|
|
6845
|
+
this.addEntity(newEntity, true);
|
|
6846
6846
|
reloadResults = true;
|
|
6847
6847
|
}
|
|
6848
6848
|
}
|
|
6849
6849
|
else if (entity === localEntity) {
|
|
6850
6850
|
this.applyPropertyChanges(change, entity);
|
|
6851
|
-
this.addEntity(entity);
|
|
6851
|
+
this.addEntity(entity, true);
|
|
6852
6852
|
reloadResults = true;
|
|
6853
6853
|
}
|
|
6854
6854
|
}
|
|
@@ -6881,7 +6881,7 @@ class TruDataChangeParser {
|
|
|
6881
6881
|
if (entity) {
|
|
6882
6882
|
this.applyPropertyChanges(change, entity);
|
|
6883
6883
|
if (this.entityFoundByQuery(change) && this.isLoaded()) {
|
|
6884
|
-
this.addEntity(newEntity);
|
|
6884
|
+
this.addEntity(newEntity, true);
|
|
6885
6885
|
reloadResults = true;
|
|
6886
6886
|
}
|
|
6887
6887
|
}
|
|
@@ -6898,7 +6898,7 @@ class TruDataChangeParser {
|
|
|
6898
6898
|
newEntity[pkeyName2] = change.tableRef;
|
|
6899
6899
|
this.applyPropertyChanges(change, newEntity);
|
|
6900
6900
|
if (this.entityFoundByQuery(change) && this.isLoaded()) {
|
|
6901
|
-
this.addEntity(newEntity);
|
|
6901
|
+
this.addEntity(newEntity, true);
|
|
6902
6902
|
reloadResults = true;
|
|
6903
6903
|
}
|
|
6904
6904
|
}
|
|
@@ -7289,7 +7289,9 @@ class TruDataGrid {
|
|
|
7289
7289
|
}
|
|
7290
7290
|
return false;
|
|
7291
7291
|
};
|
|
7292
|
-
addEntity = (newEntity) => {
|
|
7292
|
+
addEntity = (newEntity, dataNotification = false) => {
|
|
7293
|
+
if (this.entity && dataNotification)
|
|
7294
|
+
return;
|
|
7293
7295
|
if (this.entity) {
|
|
7294
7296
|
newEntity[this.config.parentTableRelationshipRefName] = this.entity[this.config.parentTableRefName];
|
|
7295
7297
|
}
|