cat-qw-lib 0.58.2 → 0.58.4

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.
@@ -4798,7 +4798,7 @@ class WidgetMenuContainerComponent {
4798
4798
  return;
4799
4799
  }
4800
4800
  this.getWidgetFromCacheList(this.recordId, this.widgetName);
4801
- this.getAllWidgetList(this.recordId, this.widgetName);
4801
+ // this.getAllWidgetList(this.recordId, this.widgetName);
4802
4802
  this.handleGetWidgetData();
4803
4803
  this.handleWidgetItemClick();
4804
4804
  }
@@ -4871,6 +4871,16 @@ class WidgetMenuContainerComponent {
4871
4871
  this.widgetStore.setOnViewPropertyDetails({ propertyId: null, isDailogShow: false });
4872
4872
  }
4873
4873
  if (changes['isRouteChanged'] && this.widgetName && this.recordId) {
4874
+ console.log(this.widgetName);
4875
+ console.log(this.recordId);
4876
+ if (!this.widgetName || !this.recordId) {
4877
+ console.error(ERROR.ERROR_MISSING_PARAMETERS, {
4878
+ widgetName: this.widgetName || SHARED.MISSING_WIDGETNAME,
4879
+ recordId: this.recordId || SHARED.MISSING_RECORD_ID
4880
+ });
4881
+ this.isLoading = false;
4882
+ return;
4883
+ }
4874
4884
  console.log(this.isRouteChanged);
4875
4885
  this.getAllWidgetList(this.recordId, this.widgetName);
4876
4886
  }