@trudb/tru-common-lib 0.2.220 → 0.2.223

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,12 +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);
2004
2006
  this.propertyChanged(changeArgs);
2005
2007
  this.entityChangedHandler(changeArgs);
2006
2008
  }
2007
- if (changeArgs.entityAction === EntityAction.Attach) {
2008
- this.entityAdded(changeArgs);
2009
- }
2010
2009
  });
2011
2010
  }
2012
2011
  onPropertyChanged() {
@@ -2019,7 +2018,7 @@ class TruDataContext {
2019
2018
  return this._entityAdded$;
2020
2019
  }
2021
2020
  entityAdded(changeArgs) {
2022
- this._propertyChanged$.next(changeArgs);
2021
+ this._entityAdded$.next(changeArgs);
2023
2022
  }
2024
2023
  onDataChanged() {
2025
2024
  return this._dataChanged$;