I can't seem to index to the object. You can see below it shows the object, but when I console out myThumbs or when I try to index something in the object it says undefined.
thumbHelper(){
  let myThumbs = {};
  this.state.apiResponse.fileNames.forEach(f=>{
    this.getThumb(f).then(blob=>{
      myThumbs[f] = blob;
    });
  });
  this.setState({myThumbs});
  console.log(myThumbs);
  console.log(myThumbs["134711.jpg"])
  console.log(this.state.myThumbs);
}
React Dev Tools State


 
    