cat-qw-lib 0.58.4 → 0.58.5

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.
@@ -4789,15 +4789,15 @@ class WidgetMenuContainerComponent {
4789
4789
  ngOnInit() {
4790
4790
  this.handleEventFromPropertyDetails();
4791
4791
  this.handleOnViewAllDetails();
4792
- if (!this.widgetName || !this.recordId) {
4793
- console.error(ERROR.ERROR_MISSING_PARAMETERS, {
4794
- widgetName: this.widgetName || SHARED.MISSING_WIDGETNAME,
4795
- recordId: this.recordId || SHARED.MISSING_RECORD_ID
4796
- });
4797
- this.isLoading = false;
4798
- return;
4799
- }
4800
- this.getWidgetFromCacheList(this.recordId, this.widgetName);
4792
+ // if (!this.widgetName || !this.recordId) {
4793
+ // console.error(ERROR.ERROR_MISSING_PARAMETERS, {
4794
+ // widgetName: this.widgetName || SHARED.MISSING_WIDGETNAME,
4795
+ // recordId: this.recordId || SHARED.MISSING_RECORD_ID
4796
+ // });
4797
+ // this.isLoading = false;
4798
+ // return;
4799
+ // }
4800
+ // this.getWidgetFromCacheList(this.recordId, this.widgetName);
4801
4801
  // this.getAllWidgetList(this.recordId, this.widgetName);
4802
4802
  this.handleGetWidgetData();
4803
4803
  this.handleWidgetItemClick();
@@ -4870,6 +4870,9 @@ class WidgetMenuContainerComponent {
4870
4870
  if (!this.isSidebarVisible) {
4871
4871
  this.widgetStore.setOnViewPropertyDetails({ propertyId: null, isDailogShow: false });
4872
4872
  }
4873
+ if (this.recordId && this.widgetName) {
4874
+ this.getWidgetFromCacheList(this.recordId, this.widgetName);
4875
+ }
4873
4876
  if (changes['isRouteChanged'] && this.widgetName && this.recordId) {
4874
4877
  console.log(this.widgetName);
4875
4878
  console.log(this.recordId);