forked from MapComplete/MapComplete
		
	Fix toggling between modes
This commit is contained in:
		
							parent
							
								
									324b5bb79c
								
							
						
					
					
						commit
						03e82ef3cb
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
					@ -79,6 +79,15 @@
 | 
				
			||||||
    allQuestionsToAsk.setData(qta)
 | 
					    allQuestionsToAsk.setData(qta)
 | 
				
			||||||
  }))
 | 
					  }))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  onDestroy(showAllQuestionsAtOnce.addCallback(_ => {
 | 
				
			||||||
 | 
					    let qta = questionsToAsk.data
 | 
				
			||||||
 | 
					    firstQuestion.setData(undefined)
 | 
				
			||||||
 | 
					    firstQuestion.setData(qta[0])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    allQuestionsToAsk.setData([])
 | 
				
			||||||
 | 
					    allQuestionsToAsk.setData(qta)
 | 
				
			||||||
 | 
					  }))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  let answered: number = 0
 | 
					  let answered: number = 0
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue