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 => {
|
||||
GetXHRQuestionAnswer(questionObj).then(res => {
|
||||
resolve({
|
||||
answers: res.reduce((acc, dbRes) => {
|
||||
return [...acc, ...dbRes.result]
|
||||
}, []),
|
||||
answers: res,
|
||||
question: question,
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue