Bug 1559382 - Dismissing the 2nd to last card will wrongly dismiss the last sponsored card (#5138)
This commit is contained in:
Родитель
baf42a8eaa
Коммит
61f1d222b7
|
@ -91,7 +91,8 @@ export const selectLayoutRender = (state, prefs, rickRollCache) => {
|
|||
}
|
||||
|
||||
// Ensure we have recs available for this feed.
|
||||
const hasRecs = data && data.recommendations && data.recommendations.length;
|
||||
const hasRecs = data && data.recommendations;
|
||||
|
||||
// Do we ever expect to possibly have a spoc.
|
||||
if (hasRecs && component.spocs && component.spocs.positions && component.spocs.positions.length) {
|
||||
// We expect a spoc, spocs are loaded, and the server returned spocs.
|
||||
|
|
Загрузка…
Ссылка в новой задаче