mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 03:43:28 +10:00
Merge pull request #595 from sharetribe/listing-reviews-filter-public
Add state param to reviews query
This commit is contained in:
commit
ead540a126
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