So when calling the map function on states.map I get the Uncaught TypeError: states.map is not a function. Which I don\'t understand why. Also the API call only happens when