I created 2 functions to get data from two different api. And for some reason, for the first api, the data comes, and the second is undefind. And when I try to combine them