From 934d8de7336e8feee43649e70ffec577929f176f Mon Sep 17 00:00:00 2001 From: Hannu Lyytikainen Date: Fri, 15 Dec 2017 17:52:31 +0200 Subject: [PATCH] Add author include to listing query on ProfilePage This fixes missing host display name. --- src/containers/ProfilePage/ProfilePage.duck.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/ProfilePage/ProfilePage.duck.js b/src/containers/ProfilePage/ProfilePage.duck.js index fa7c43b5..1a4690b7 100644 --- a/src/containers/ProfilePage/ProfilePage.duck.js +++ b/src/containers/ProfilePage/ProfilePage.duck.js @@ -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 }));