@smartbit4all/ng-client 3.3.213 → 3.3.214

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.
@@ -13521,6 +13521,15 @@ class SmartComponentLayoutComponent {
13521
13521
  this.uuid = this.parentSmartComponent.uuid;
13522
13522
  this.treeService = this.parentSmartComponent.smartTreeService;
13523
13523
  this.smartComponentLayout?.direction;
13524
+ // the nature of the layout might have changed (e.g. from GRID to FORM), we null out every
13525
+ // template-related element, so no stale data is left on screen:
13526
+ this.expandableSection = undefined;
13527
+ this.smartForm = undefined;
13528
+ this.smartGrid = undefined;
13529
+ this.smartFilter = undefined;
13530
+ this.smartGrid = undefined;
13531
+ this.toolbarId = undefined;
13532
+ // null out toolbar?
13524
13533
  if (this.smartComponentLayout?.expandable) {
13525
13534
  this.constructExpandableSection();
13526
13535
  }