@trudb/tru-common-lib 0.2.223 → 0.2.225
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.
|
@@ -2001,11 +2001,11 @@ class TruDataContext {
|
|
|
2001
2001
|
if (changeArgs.entityAction !== EntityAction.AttachOnQuery &&
|
|
2002
2002
|
changeArgs.entityAction !== EntityAction.MergeOnQuery &&
|
|
2003
2003
|
changeArgs.entityAction !== EntityAction.MergeOnSave) {
|
|
2004
|
-
if (changeArgs.entityAction === EntityAction.Attach)
|
|
2005
|
-
this.entityAdded(changeArgs);
|
|
2006
2004
|
this.propertyChanged(changeArgs);
|
|
2007
2005
|
this.entityChangedHandler(changeArgs);
|
|
2008
2006
|
}
|
|
2007
|
+
if (changeArgs.entityAction === EntityAction.Attach)
|
|
2008
|
+
this.entityAdded(changeArgs);
|
|
2009
2009
|
});
|
|
2010
2010
|
}
|
|
2011
2011
|
onPropertyChanged() {
|
|
@@ -2076,7 +2076,7 @@ class TruDataContext {
|
|
|
2076
2076
|
};
|
|
2077
2077
|
modelPropertyOnAddHandler = (entity) => {
|
|
2078
2078
|
// @ts-expect-error
|
|
2079
|
-
let handler = entity.entityType._onAdd
|
|
2079
|
+
let handler = entity.entityType._onAdd?.handler;
|
|
2080
2080
|
if (handler)
|
|
2081
2081
|
handler(entity, this);
|
|
2082
2082
|
};
|
|
@@ -7805,7 +7805,7 @@ class TruDataGrid {
|
|
|
7805
7805
|
});
|
|
7806
7806
|
if (!entityAlreadyInGrid) {
|
|
7807
7807
|
rowNodesToAdd.push(this.enhanceRowDataForEntity(entity));
|
|
7808
|
-
this.api.applyTransaction({
|
|
7808
|
+
this.api.applyTransaction({ add: rowNodesToAdd });
|
|
7809
7809
|
}
|
|
7810
7810
|
}
|
|
7811
7811
|
}));
|