mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 21:21:19 +10:00
Add state param to reviews query
This commit is contained in:
parent
13e7a9b199
commit
30844a0f3a
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ export const showListing = listingId => (dispatch, getState, sdk) => {
|
|||
|
||||
export const fetchReviews = listingId => (dispatch, getState, sdk) => {
|
||||
return sdk.reviews
|
||||
.query({ listing_id: listingId, include: ['author', 'author.profileImage'] })
|
||||
.query({ listing_id: listingId, state: 'public', include: ['author', 'author.profileImage'] })
|
||||
.then(response => {
|
||||
const entities = updatedEntities({}, response.data);
|
||||
const reviewIds = response.data.data.map(d => d.id);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue