fix: correct id compute
parent
053d9f724b
commit
76d8b3868a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue