Teambuilder Showdown usage failed imports

How to recreate the issue:
  1. Create new team
  2. Set format to 'LC'
  3. Add a Riolu
  4. Go to 'import/export' on Riolu
  5. Click 'Showdown Usage'
  6. Nothing happens -> Looking at the console shows that there was an error (See below)
  7. Profit?
The Error:
client-teambuilder.js?d925bdc4:1573

Uncaught TypeError: Cannot read property 'Showdown Usage' of undefined
at child.importSmogonSet (client-teambuilder.js?d925bdc4:1573)
at child.dispatchClickButton (client.js?a4b4268e:1996)
at HTMLButtonElement.e (lodash.core.js?e9be4c2d:12)
at HTMLDivElement.dispatch (jquery-2.1.4.min.js:3)
at HTMLDivElement.r.handle (jquery-2.1.4.min.js:3)

Issue line of code:
var smogonSet = formatSets['smogon.com/dex'][species][setName] || formatSets['smogon.com/stats'][species][setName];

(species = 'Riolu', setName = 'Showdown Usage')

A quick check does show that there is a Riolu entry in formatSets['smogon.com/stats'] but not in formatSets['smogon.com/dex']. Bug likely due to there not being a riolu set in the formatSets['smogon.com/dex'] and crashing out because it couldn't find the species in the list.
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 1, Guests: 0)

Top