@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.
@@ -4971,6 +4971,9 @@
4971
4971
  }));
4972
4972
  this.processStrip(strip, this.transformContentsToWidgets(filteredArray_1, strip), 'done', calculateParentStatus, viewMoreUrl);
4973
4973
  }
4974
+ else {
4975
+ this.processStrip(strip, [], 'done', calculateParentStatus, viewMoreUrl);
4976
+ }
4974
4977
  };
4975
4978
  /**
4976
4979
  * @param {?} strip
@@ -17099,14 +17102,14 @@
17099
17102
  return __generator(this, function (_a) {
17100
17103
  switch (_a.label) {
17101
17104
  case 0:
17102
- if (!(strip.request && strip.request.cbpList && Object.keys(strip.request.cbpList).length)) return [3 /*break*/, 5];
17105
+ if (!(strip.request && strip.request.cbpList && Object.keys(strip.request.cbpList).length)) return [3 /*break*/, 7];
17103
17106
  courses = void 0;
17104
17107
  tabResults = [];
17105
17108
  userId = this.configSvc.userProfile.userId;
17106
17109
  return [4 /*yield*/, this.userSvc.fetchCbpPlanList(userId).toPromise()];
17107
17110
  case 1:
17108
17111
  response = _a.sent();
17109
- if (!response) return [3 /*break*/, 4];
17112
+ if (!response) return [3 /*break*/, 5];
17110
17113
  courses = response;
17111
17114
  if (!(strip.tabs && strip.tabs.length)) return [3 /*break*/, 3];
17112
17115
  tabResults = this.splitCbpTabsData(courses, strip);
@@ -17140,10 +17143,14 @@
17140
17143
  case 3:
17141
17144
  this.processStrip(strip, this.transformContentsToWidgets(courses, strip), 'done', calculateParentStatus, 'viewMoreUrl');
17142
17145
  _a.label = 4;
17143
- case 4:
17146
+ case 4: return [3 /*break*/, 6];
17147
+ case 5:
17148
+ this.processStrip(strip, this.transformContentsToWidgets(courses, strip), 'done', calculateParentStatus, '', tabResults);
17149
+ _a.label = 6;
17150
+ case 6:
17144
17151
  clearInterval(this.enrollInterval);
17145
- _a.label = 5;
17146
- case 5: return [2 /*return*/];
17152
+ _a.label = 7;
17153
+ case 7: return [2 /*return*/];
17147
17154
  }
17148
17155
  });
17149
17156
  });