From 0ddeaf0f27019e57377cfbf9b6dabf377168f308 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Mon, 23 Sep 2019 17:13:36 +0100 Subject: [PATCH] fix: publish button disabled for file uploads --- src/page/publish/view.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/page/publish/view.js b/src/page/publish/view.js index 2d30069..584a3f8 100644 --- a/src/page/publish/view.js +++ b/src/page/publish/view.js @@ -411,7 +411,11 @@ class PublishPage extends React.PureComponent { if (publishFormValues.thumbnail && !this.state.uploadedThumbnailUri) { const { thumbnail } = publishFormValues; updatePublishFormState({ currentThumbnailUri: thumbnail, uploadedThumbnailUri: thumbnail }); - this.setState({ currentThumbnailUri: thumbnail, uploadedThumbnailUri: thumbnail }); + this.setState({ + currentThumbnailUri: thumbnail, + uploadedThumbnailUri: thumbnail, + uploadThumbnailStarted: false, + }); } } @@ -1117,7 +1121,7 @@ class PublishPage extends React.PureComponent {