"TypeError: data is undefined" in Merge game

Issue #104 new
Helder created an issue

When I try to load http://tools.wmflabs.org/wikidata-game/#mode=merge on Firefox 29 I get the error "TypeError: data is undefined" from this line of main.js: if ( typeof self.had_id[data.id] != 'undefined' ) return self.getAndShow ( show ) ;

Comments (2)

  1. Lokal Profil

    I can confirm the behaviour when my settings were "Only use preferred languages" and I only had one language (pt) set. (Otherwise it is fine).

    @he7d3r Are your settings similar?

    Per issue #106 merge pairs should never contain more than one occurrence of a language so I'm guessing the game simply does not find any data to deliver. Should be possible to set up an error message along the lines of "No merge candidates could be found (for your current settings)" if no candidates are found.

  2. Log in to comment