fix bug in local storage logic

This commit is contained in:
Delucse 2020-09-25 13:40:42 +02:00
parent 1d3f356fe7
commit 9b2d66aee7

View File

@ -24,7 +24,7 @@ const initialStatus = () => {
}
}
else{
status.push({id: tutorialsId, tasks: new Array(tutorial.steps.filter(step => step.type === 'task').length).fill({})});
status.push({id: tutorialsId, tasks: tutorial.steps.filter(step => step.type === 'task').map(task => {return {id: task.id};})});
}
return tutorialsId;
});