Witam serdecznie. Pracuję ostatnio nad pewnym projektem we Vue niestety przez pewien problem stoję w miejscu od trzech dni. Problem ten polega na tym że nie mogę wyświetlić tablicy, którą zwraca mi API.
https://i.ibb.co/fDY5nTR/aapi.png</img>
W ten sposób otrzymuje normalnie swój obiekt, tak jak to widać na załączonym obrazku.
axios.get('/api/game/current').then(response => {
this.players1 = response.data.data;
this.players1.forEach((el) => console.log(el))
});
W ten sposób otrzymuje w konsoli błąd
axios.get('/api/game/current').then(response => {
this.players1 = response.data.data.players;
this.players1.forEach((el) => console.log(el))
});