mirror of
https://gitlab.com/MrFry/moodle-test-userscript
synced 2025-04-01 20:22:48 +02:00
Correct question sorting
This commit is contained in:
parent
de0ceb7e27
commit
50b6b93a46
1 changed files with 1 additions and 3 deletions
|
@ -317,9 +317,7 @@
|
||||||
new Promise(resolve => {
|
new Promise(resolve => {
|
||||||
GetXHRQuestionAnswer(questionObj).then(res => {
|
GetXHRQuestionAnswer(questionObj).then(res => {
|
||||||
resolve({
|
resolve({
|
||||||
answers: res.reduce((acc, dbRes) => {
|
answers: res,
|
||||||
return [...acc, ...dbRes.result]
|
|
||||||
}, []),
|
|
||||||
question: question,
|
question: question,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue