Page MenuHomePhabricator

Uncaught TypeError: Cannot read property 'indexOf' of undefined
Closed, ResolvedPublic

Description

When there is no MT between language pair, CX throws console error above.

URL to test: http://cx2.wmflabs.org/index.php/Special:ContentTranslation?page=Fair+use&from=en&to=gu&targettitle=Fair+use

Event Timeline

The line of code:

if ( MTControlCard.providers.indexOf( translationPreference ) < 0 &&

I think it is introduced in wednesday: https://gerrit.wikimedia.org/r/#/c/275365/

Change 280166 had a related patch set uploaded (by Santhosh):
Fix JS error in MT Card

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

Change 280166 merged by jenkins-bot:
Fix JS error in MT Card

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

Nikerabbit moved this task from Backlog to Done on the LE-CX8-Sprint 4 board.