fix bug in local storage logic
This commit is contained in:
		
							parent
							
								
									1d3f356fe7
								
							
						
					
					
						commit
						9b2d66aee7
					
				| @ -24,7 +24,7 @@ const initialStatus = () => { | |||||||
|         } |         } | ||||||
|       } |       } | ||||||
|       else{ |       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; |       return tutorialsId; | ||||||
|     }); |     }); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user