@trudb/tru-common-lib 0.2.74 → 0.2.75

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.
@@ -3991,7 +3991,15 @@ class TruDetailViewBase {
3991
3991
  };
3992
3992
  onDeleteEntity = () => {
3993
3993
  let confirmMsg = this.textManager.fmtDeleteConfirmation(this.entityType.name);
3994
- this.dataContext.delete([this.entity], confirmMsg, () => { return true; });
3994
+ this.dataContext.delete([this.entity], confirmMsg, () => {
3995
+ if (!this.entities.length) {
3996
+ let index = this.view.window.views.indexOf(this.view);
3997
+ if (index > -1) {
3998
+ this.view.window.views.splice(index, 1);
3999
+ }
4000
+ }
4001
+ return true;
4002
+ });
3995
4003
  };
3996
4004
  onFirstEntity = () => {
3997
4005
  this.navigateTo(0);