@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
|
@@ -4567,14 +4567,19 @@ var ContentStripWithTabsLibComponent = /** @class */ (function (_super) {
|
|
|
4567
4567
|
if (response && response.results && response.results.response) {
|
|
4568
4568
|
content = response.results.response[strip.request.trendingSearch.responseKey] || [];
|
|
4569
4569
|
this.processStrip(strip, this.transformContentsToWidgets(content, strip), 'done', calculateParentStatus, response.viewMoreUrl || '');
|
|
4570
|
+
if (!content.length) {
|
|
4571
|
+
this.emptyResponse.emit(true);
|
|
4572
|
+
}
|
|
4570
4573
|
}
|
|
4571
4574
|
else {
|
|
4575
|
+
this.emptyResponse.emit(true);
|
|
4572
4576
|
this.processStrip(strip, [], 'done', calculateParentStatus, null);
|
|
4573
4577
|
}
|
|
4574
4578
|
return [3 /*break*/, 4];
|
|
4575
4579
|
case 3:
|
|
4576
4580
|
error_2 = _a.sent();
|
|
4577
4581
|
// Handle errors
|
|
4582
|
+
this.emptyResponse.emit(true);
|
|
4578
4583
|
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
4579
4584
|
return [3 /*break*/, 4];
|
|
4580
4585
|
case 4: return [2 /*return*/];
|