@trudb/tru-common-lib 0.2.232 → 0.2.233

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.
@@ -4001,11 +4001,12 @@ class TruDetailViewBase {
4001
4001
  newEntity = this.dataContext.entityAccess().add(this.entityType);
4002
4002
  if (this.view.parentTableRefName)
4003
4003
  newEntity[this.view.parentTableRefName] = this.entity[this.view.parentTableRefName];
4004
- this.entities.unshift(newEntity);
4005
- if (!dataNotification)
4004
+ if (!dataNotification) {
4005
+ this.entities.unshift(newEntity);
4006
4006
  this.setNavigationIndex(0);
4007
+ }
4007
4008
  else {
4008
- this.setNavigationIndex(this.navigationIndex + 1);
4009
+ this.entities.push(newEntity);
4009
4010
  }
4010
4011
  };
4011
4012
  onCloneEntity = () => {