Page MenuHomePhabricator

[betalabs] TypeError: data.homepagequestionstore.questions.forEach is not a function
Closed, ResolvedPublic

Description

Found in betalabs when checking T222124. When loading, Special:Homepage displays the following Console error:

TypeError: data.homepagequestionstore.questions.forEach is not a function
The error points to :

data.homepagequestionstore.questions.forEach(function (questionRecord) {
              if (questionRecord.isArchived) {
                archivedCount++;
              } else {
                unarchivedCount++;
              }

The error seems to be displayed on every Homepage (not only for users who had archived/unarchived questions).

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 10 2019, 2:30 AM
kostajh claimed this task.May 10 2019, 5:33 PM
kostajh moved this task from Incoming to In Progress on the Growth-Team (Current Sprint) board.

Change 509474 had a related patch set uploaded (by Kosta Harlan; owner: Kosta Harlan):
[mediawiki/extensions/GrowthExperiments@master] Return empty array if there are no questions

https://gerrit.wikimedia.org/r/509474

Change 509474 merged by jenkins-bot:
[mediawiki/extensions/GrowthExperiments@master] Return empty array if there are no questions

https://gerrit.wikimedia.org/r/509474

Etonkovidova closed this task as Resolved.May 14 2019, 5:12 PM