fix: correct id compute
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user