Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

Commit

Permalink
🚑 Fix return of fetch response
Browse files Browse the repository at this point in the history
API response now uses a top level key items followed by the array
  • Loading branch information
thibmaek committed Nov 24, 2016
1 parent 35b372c commit cce345c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/composedFetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export default itemIdentifier => axios.get(`items`, {
baseURL: `http://track.bpost.be/btr/api/`,
responseType: `json`,
params: { itemIdentifier },
}).then(res => res.data[0]);
}).then(res => res.data.items[0]);

0 comments on commit cce345c

Please sign in to comment.