Skip to content

Commit

Permalink
fixed index error uploading json
Browse files Browse the repository at this point in the history
  • Loading branch information
pablopunk committed Mar 1, 2016
1 parent b748121 commit d53ef04
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/js/Data.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,11 +322,9 @@ function DataManager() {
try {
for (var i=0; i<newSolves.length; i++) {
var s = newSolves[i]
Data.newSolve(s.name) // could exist, in that case times are pushed to existing solve
var index = Data.getIndex(s.name)
Data.newSolve(s.name)
console.log('solve '+s.name);
for (var j=0; j<s.times.length; j++) {
console.log('\ttime '+s.times[j].time);
Data.solves[index].times.push(new SolveTime(s.times[j].time, s.times[j].scramble))
}
}
Expand Down

0 comments on commit d53ef04

Please sign in to comment.