mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Merge pull request #1074 from milotiger/bugs/fix_minor_bug_on_fetching_reviews
fix dispatch for fetchReviewRequest
This commit is contained in:
commit
ee78b08822
2 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue