Commit 909c8801c5021322acb0dd53aa9607e211426bfd

Authored by Igor Kulikov
Committed by GitHub
1 parent 499a6dbe

Update attribute-table.component.ts

... ... @@ -443,14 +443,13 @@ export class AttributeTableComponent extends PageComponent implements AfterViewI
443 443 }
444 444
445 445 onWidgetsBundleChanged(widgetsBundle: WidgetsBundle) {
  446 + this.widgetBundleSet = !!widgetsBundle;
446 447 if (this.mode === 'widget') {
447 448 this.widgetsList = [];
448 449 this.widgetsListCache = [];
449   - this.widgetsCarouselIndex = 0;
450   - this.widgetBundleSet = false;
  450 + this.widgetsCarouselIndex = 0;
451 451 if (widgetsBundle) {
452 452 this.widgetsLoaded = false;
453   - this.widgetBundleSet = true;
454 453 const bundleAlias = widgetsBundle.alias;
455 454 const isSystem = widgetsBundle.tenantId.id === NULL_UUID;
456 455 this.widgetService.getBundleWidgetTypes(bundleAlias, isSystem).subscribe(
... ... @@ -515,7 +514,6 @@ export class AttributeTableComponent extends PageComponent implements AfterViewI
515 514
516 515 exitWidgetMode() {
517 516 this.selectedWidgetsBundleAlias = null;
518   - this.widgetBundleSet = false;
519 517 this.mode = 'default';
520 518 }
521 519
... ...