getting undefined when looking for res.data.fullName...but can access data in console

Viewed 19
1 Answers

Looks like your call returns an array of objects, you should be able to access them with:

.then(res => {
    for (const data of res.data) {
        console.log(data.fullName);
    }
})
Related