Skip to content

Commit

Permalink
Merge pull request #3 from pragmaticivan/feature/fix-payload-formatte…
Browse files Browse the repository at this point in the history
…r-not-complying-with-apollo-link-return

Fixes payload formatter not complying with apollo link return
  • Loading branch information
jkusachi authored Mar 5, 2019
2 parents d65a1c7 + bdb455a commit 44f2aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const reduxOfflineApolloLink = (
);
console.groupEnd();
}
return linkFetchOptions.payloadFormatter(result);
return { data: linkFetchOptions.payloadFormatter(result) };
}
return result;
})
Expand Down

0 comments on commit 44f2aea

Please sign in to comment.