From e86f1a792fbefd0f8817da1bc79d8542e96e7a09 Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Tue, 20 Nov 2018 15:18:47 +0200 Subject: [PATCH 1/3] fix draft listing. ModalMissingInformation was still shown too early. --- src/containers/EditListingPage/EditListingPage.duck.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/containers/EditListingPage/EditListingPage.duck.js b/src/containers/EditListingPage/EditListingPage.duck.js index 76885dca..0e1f304b 100644 --- a/src/containers/EditListingPage/EditListingPage.duck.js +++ b/src/containers/EditListingPage/EditListingPage.duck.js @@ -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; @@ -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; From 307c6d5ca1aea55f7beda9bc730e5b58c78b7a7a Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Tue, 20 Nov 2018 15:21:30 +0200 Subject: [PATCH 2/3] Update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d9d71fde..ced031ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) From e51b0cbd4222cceddc5e99ea17c02093824286e4 Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Tue, 20 Nov 2018 15:22:07 +0200 Subject: [PATCH 3/3] Update version (v2.3.1 seems to be forgotten last time) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 651be013..c421ca3f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "app", - "version": "2.3.0", + "version": "2.3.2", "private": true, "license": "Apache-2.0", "dependencies": {