@trudb/tru-common-lib 0.2.87 → 0.2.89

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.
@@ -3996,10 +3996,8 @@ class TruDetailViewBase {
3996
3996
  let index = this.entities.indexOf(this.entity);
3997
3997
  this.entities.splice(index, 1);
3998
3998
  if (!this.entities.length) {
3999
- index = this.view.window.views.indexOf(this.view);
4000
- if (index > -1) {
4001
- this.view.window.views.splice(index, 1);
4002
- }
3999
+ this.view.window.goToPreviousView();
4000
+ this.view.window.removeForwardViews();
4003
4001
  }
4004
4002
  }
4005
4003
  return true;
@@ -7910,6 +7908,8 @@ class WindowConfig {
7910
7908
  contextFilters = [];
7911
7909
  parentDataContext = null;
7912
7910
  parentView = null;
7911
+ removeForwardViews = () => { };
7912
+ goToPreviousView = () => { };
7913
7913
  closed = () => { };
7914
7914
  destroy = () => {
7915
7915
  while (this.unsubscribes.length)