fix: correct id compute

This commit is contained in:
2022-10-10 16:14:00 +02:00
parent 053d9f724b
commit 76d8b3868a

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;