@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.
- package/bundles/sunbird-cb-consumption.umd.js +5 -0
- package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +6 -1
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +6 -1
- package/fesm2015/sunbird-cb-consumption.js +5 -0
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +5 -0
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/package.json +1 -1
|
@@ -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*/];
|