@sunbird-cb/consumption 0.0.91 → 0.0.92

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.
@@ -4767,6 +4767,9 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
4767
4767
  }));
4768
4768
  this.processStrip(strip, this.transformContentsToWidgets(filteredArray_1, strip), 'done', calculateParentStatus, viewMoreUrl);
4769
4769
  }
4770
+ else {
4771
+ this.processStrip(strip, [], 'done', calculateParentStatus, viewMoreUrl);
4772
+ }
4770
4773
  };
4771
4774
  /**
4772
4775
  * @param {?} strip
@@ -16895,14 +16898,14 @@ var ContentStripWithTabsPillsComponent = /** @class */ (function (_super) {
16895
16898
  return __generator(this, function (_a) {
16896
16899
  switch (_a.label) {
16897
16900
  case 0:
16898
- if (!(strip.request && strip.request.cbpList && Object.keys(strip.request.cbpList).length)) return [3 /*break*/, 5];
16901
+ if (!(strip.request && strip.request.cbpList && Object.keys(strip.request.cbpList).length)) return [3 /*break*/, 7];
16899
16902
  courses = void 0;
16900
16903
  tabResults = [];
16901
16904
  userId = this.configSvc.userProfile.userId;
16902
16905
  return [4 /*yield*/, this.userSvc.fetchCbpPlanList(userId).toPromise()];
16903
16906
  case 1:
16904
16907
  response = _a.sent();
16905
- if (!response) return [3 /*break*/, 4];
16908
+ if (!response) return [3 /*break*/, 5];
16906
16909
  courses = response;
16907
16910
  if (!(strip.tabs && strip.tabs.length)) return [3 /*break*/, 3];
16908
16911
  tabResults = this.splitCbpTabsData(courses, strip);
@@ -16936,10 +16939,14 @@ var ContentStripWithTabsPillsComponent = /** @class */ (function (_super) {
16936
16939
  case 3:
16937
16940
  this.processStrip(strip, this.transformContentsToWidgets(courses, strip), 'done', calculateParentStatus, 'viewMoreUrl');
16938
16941
  _a.label = 4;
16939
- case 4:
16942
+ case 4: return [3 /*break*/, 6];
16943
+ case 5:
16944
+ this.processStrip(strip, this.transformContentsToWidgets(courses, strip), 'done', calculateParentStatus, '', tabResults);
16945
+ _a.label = 6;
16946
+ case 6:
16940
16947
  clearInterval(this.enrollInterval);
16941
- _a.label = 5;
16942
- case 5: return [2 /*return*/];
16948
+ _a.label = 7;
16949
+ case 7: return [2 /*return*/];
16943
16950
  }
16944
16951
  });
16945
16952
  });