1👍
Remove this line
then((json) => console.log(json))
You are returning console.log(json)
it doesnt make sense
If you want still to log it do it like this
then(json => {
console.log(json);
return json;
})
Source:stackexchange.com