Add author include to listing query on ProfilePage

This fixes missing host display name.
This commit is contained in:
Hannu Lyytikainen 2017-12-15 17:52:31 +02:00
parent c143af22f2
commit 934d8de733

View file

@ -124,7 +124,7 @@ export const queryReviewsError = e => ({
export const queryUserListings = userId => (dispatch, getState, sdk) => {
dispatch(queryListingsRequest(userId));
return sdk.listings
.query({ author_id: userId, include: ['images'] })
.query({ author_id: userId, include: ['author', 'images'] })
.then(response => {
// Pick only the id and type properties from the response listings
const listingRefs = response.data.data.map(({ id, type }) => ({ id, type }));