Fix saving options on fast proceed

Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
This commit is contained in:
Jonas Rittershofer 2020-05-17 13:38:34 +02:00
commit ff9b474f4a

View file

@ -59,6 +59,11 @@ export default {
data() {
return {
queue: new PQueue({ concurrency: 1 }),
// As data instead of Method, to have a separate debounce per AnswerInput
debounceUpdateAnswer: pDebounce(function(answer) {
return this.queue.add(() => this.updateAnswer(answer))
}, 500),
}
},
@ -179,9 +184,6 @@ export default {
console.error(error)
}
},
debounceUpdateAnswer: pDebounce(function(answer) {
return this.queue.add(() => this.updateAnswer(answer))
}, 500),
},
}
</script>