@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
|
@@ -4045,13 +4045,18 @@ class ContentStripWithTabsLibComponent extends WidgetBaseComponent {
|
|
|
4045
4045
|
/** @type {?} */
|
|
4046
4046
|
const content = response.results.response[strip.request.trendingSearch.responseKey] || [];
|
|
4047
4047
|
this.processStrip(strip, this.transformContentsToWidgets(content, strip), 'done', calculateParentStatus, response.viewMoreUrl || '');
|
|
4048
|
+
if (!content.length) {
|
|
4049
|
+
this.emptyResponse.emit(true);
|
|
4050
|
+
}
|
|
4048
4051
|
}
|
|
4049
4052
|
else {
|
|
4053
|
+
this.emptyResponse.emit(true);
|
|
4050
4054
|
this.processStrip(strip, [], 'done', calculateParentStatus, null);
|
|
4051
4055
|
}
|
|
4052
4056
|
}
|
|
4053
4057
|
catch (error) {
|
|
4054
4058
|
// Handle errors
|
|
4059
|
+
this.emptyResponse.emit(true);
|
|
4055
4060
|
this.processStrip(strip, [], 'error', calculateParentStatus, null);
|
|
4056
4061
|
}
|
|
4057
4062
|
}
|