mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 20:53:24 +10:00
Add author include to listing query on ProfilePage
This fixes missing host display name.
This commit is contained in:
parent
c143af22f2
commit
934d8de733
1 changed files with 1 additions and 1 deletions
|
|
@ -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 }));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue