Merge pull request #1074 from milotiger/bugs/fix_minor_bug_on_fetching_reviews

fix dispatch for fetchReviewRequest
This commit is contained in:
Vesa Luusua 2019-05-03 17:33:37 +03:00 committed by GitHub
commit ee78b08822
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -14,6 +14,8 @@ way to update this template, but currently, we follow a pattern:
## Upcoming version 2019-XX-XX
- [fix] ListingPage.duck: fix minor bug on dispatching the fetchReviewsRequest action [#1074](https://github.com/sharetribe/flex-template-web/pull/1074)
## [v2.15.0] 2019-04-24
- [add] Improve printing API errors on web inspector (console.table)

View file

@ -171,7 +171,7 @@ export const showListing = (listingId, isOwn = false) => (dispatch, getState, sd
};
export const fetchReviews = listingId => (dispatch, getState, sdk) => {
dispatch(fetchReviewsRequest);
dispatch(fetchReviewsRequest());
return sdk.reviews
.query({
listing_id: listingId,