fix: correct id compute

pull/1/head
Nicolas Doby 2022-10-10 16:14:00 +02:00
parent 053d9f724b
commit 76d8b3868a
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ export default {
})
.then((response) => {
response.data._embedded.quizzes.map(quiz => {
quiz.id = Number(quiz._links.self.href.split("").reverse()[0]);
quiz.id = Number(quiz._links.self.href.split("/").reverse()[0]);
return quiz;
});
return response;