Skip to content

Commit

Permalink
Merge pull request #956 from sharetribe/fix-ModalMissingInformation-s…
Browse files Browse the repository at this point in the history
…howing-too-early-take2

Fix modal missing information showing too early take2
  • Loading branch information
Gnito authored Nov 20, 2018
2 parents 65a081a + e51b0cb commit a612a61
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ way to update this template, but currently, we follow a pattern:

## Upcoming version 2018-11-XX

## v2.3.2 2018-11-20

* [fix] Take 2: don't set currentUserHasListings if fetched listing is in draft state.
[#956](https://github.com/sharetribe/flex-template-web/pull/956)
* [fix] PriceFilter styles
[#954](https://github.com/sharetribe/flex-template-web/pull/954)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app",
"version": "2.3.0",
"version": "2.3.2",
"private": true,
"license": "Apache-2.0",
"dependencies": {
Expand Down
6 changes: 0 additions & 6 deletions src/containers/EditListingPage/EditListingPage.duck.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { types as sdkTypes } from '../../util/sdkLoader';
import { storableError } from '../../util/errors';
import { addMarketplaceEntities } from '../../ducks/marketplaceData.duck';
import * as log from '../../util/log';
import { fetchCurrentUserHasListingsSuccess } from '../../ducks/user.duck';

const { UUID } = sdkTypes;

Expand Down Expand Up @@ -274,11 +273,6 @@ export function requestCreateListingDraft(data) {
// Add the created listing to the marketplace data
dispatch(addMarketplaceEntities(response));

// We must update the user duck since this might be the first
// listing for the user, therefore changing the
// currentUserHasListings flag in the store.
dispatch(fetchCurrentUserHasListingsSuccess(true));

// Modify store to understand that we have created listing and can redirect away
dispatch(createListingDraftSuccess(response));
return response;
Expand Down

0 comments on commit a612a61

Please sign in to comment.