I have a problem with async/await. Here is my code:
import axios from 'axios'
export default async function getRequestedData (requestAddress, params) {
return await axios.get(requestAddress, {params: params})
}
But instead of the result it returns a full promise, so the data is heavily nested inside a promise:
