let members=[{id:3, seal:'XXXXX', name:'Test'}, {}, {}]
axios.get("xxx" + seal + "/xx")
.then(response => {
this.articleStream = this.members.forEach(item => {
response.data.map(i => (i.user_id = item.id));
});
})
Upon executing the axios call, the articleStream array needs to cross-reference the user_id
with the id
in the members
array and the seal
which is provided during the axios call. It should then map the name
from members
to the articleStream
. However, currently it is not returning the correct information.
The array returned from the axios call appears as follows:
[{ id: 5, user_id: 3},{}]