Don't readd the answer if unchanged
This commit is contained in:
parent
606f22f586
commit
33eaa9b76c
2 changed files with 23 additions and 1 deletions
|
@ -15,7 +15,11 @@
|
|||
|
||||
const res = [];
|
||||
for (const r in responses) {
|
||||
res.push({"id_question": responses[r].id_question, "value": String(responses[r].value)})
|
||||
res.push({
|
||||
"id": responses[r].id,
|
||||
"id_question": responses[r].id_question,
|
||||
"value": String(responses[r].value)
|
||||
})
|
||||
}
|
||||
|
||||
survey.submitAnswers(res, id_user).then((response) => {
|
||||
|
|
Reference in a new issue