@sunbird-cb/consumption 0.0.33 → 0.0.34

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.
@@ -4773,14 +4773,19 @@
4773
4773
  if (response && response.results && response.results.response) {
4774
4774
  content = response.results.response[strip.request.trendingSearch.responseKey] || [];
4775
4775
  this.processStrip(strip, this.transformContentsToWidgets(content, strip), 'done', calculateParentStatus, response.viewMoreUrl || '');
4776
+ if (!content.length) {
4777
+ this.emptyResponse.emit(true);
4778
+ }
4776
4779
  }
4777
4780
  else {
4781
+ this.emptyResponse.emit(true);
4778
4782
  this.processStrip(strip, [], 'done', calculateParentStatus, null);
4779
4783
  }
4780
4784
  return [3 /*break*/, 4];
4781
4785
  case 3:
4782
4786
  error_2 = _a.sent();
4783
4787
  // Handle errors
4788
+ this.emptyResponse.emit(true);
4784
4789
  this.processStrip(strip, [], 'error', calculateParentStatus, null);
4785
4790
  return [3 /*break*/, 4];
4786
4791
  case 4: return [2 /*return*/];