diff --git a/src/UI/Popup/TagRendering/Questionbox.svelte b/src/UI/Popup/TagRendering/Questionbox.svelte index e52fbbf8dc..76be7c51e7 100644 --- a/src/UI/Popup/TagRendering/Questionbox.svelte +++ b/src/UI/Popup/TagRendering/Questionbox.svelte @@ -71,13 +71,13 @@ let firstQuestion: UIEventSource = new UIEventSource(undefined) let allQuestionsToAsk : UIEventSource = new UIEventSource([]) - function calculateQuestions(){ + async function calculateQuestions(){ console.log("Applying questions to ask") const qta = questionsToAsk.data firstQuestion.setData(undefined) - firstQuestion.setData(qta[0]) - allQuestionsToAsk.setData([]) + await Utils.awaitAnimationFrame() + firstQuestion.setData(qta[0]) allQuestionsToAsk.setData(qta) }