当我打印console.log(this.props.result.data)时,控制台显示我的对象

enter image description here

但是当我尝试访问this.props.result.data.attributes或this.props.data中的任何内容时,我得到一个错误可能的未处理的Promise拒绝(id:0):this.props.result.data.attributes undefined不是一个东西 .

为什么会这样?

我在控制台中看到了属性

该对象由api的fetch调用返回 .

这是我的获取代码

export function* getPost() {
  console.log('Entrei no saga de pegar um post');
  const getPostsRequest = token => fetch(API_URL+'feed/posts/a6383507-1dd6-46b1-b27f-23f59ee3260b', {
                                      method: 'GET',
                                      headers: { 'Authorization': 'Bearer ' + JWT }
                                    });

  const response = yield call(getPostsRequest);
  //console.log("fiz o fetch");
  //console.log(response);
  const result = yield response.json();

  yield put({ type: GET_POST_RESULT, result});
}