Fix toggling between modes

This commit is contained in:
Pieter Vander Vennet 2024-03-19 02:00:52 +01:00
parent 2c9ebb9545
commit 78cdb95e19

View file

@ -79,6 +79,15 @@
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