EricSSartorius / Judging-System

U-Judge: Universal Judging System using Angular Meteor (OLD)
http://www.universaljudge.com/
1 stars 1 forks source link

Admin Console - Game freezes on 'next player' button push #33

Closed EricSSartorius closed 8 years ago

EricSSartorius commented 8 years ago

I am still trying to pinpoint the source because this does not happen all the time, but occasionally if I just keep pushing 'next player' I will get a 'Cannot read property 'id' of undefined' error in the console pointing at the following line of code... $scope.event.currentPlayerId = $scope.event.players[index].id; Currently line 212 on admin-console.ng.js

EricSSartorius commented 8 years ago

Found the problem. Index was not being reset when going to the next round. Might still need further testing but works fine for now.