We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfd413f commit 0001aa3Copy full SHA for 0001aa3
app/components/global-navigation/content-recommendations.js
@@ -65,9 +65,9 @@ export default Component.extend({
65
})
66
.then(items => {
67
this.set('model',
68
- items
69
- .filter(item => item.thumbnail)
70
- .map(item => createThumbnail(item, 'thumbnail'))
+ items ? items.filter(item => item.thumbnail)
+ .map(item => createThumbnail(item, 'thumbnail'))
+ : []
71
);
72
73
this.track && this.track({
0 commit comments