Sync user settings (#45)

This commit is contained in:
Akinwale Ariwodola 2019-09-24 17:26:42 +01:00 committed by GitHub
parent 5943a796e4
commit 02d8107b50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -410,6 +410,18 @@ class PublishPage extends React.PureComponent {
this.onComponentFocused();
}
if (publishFormValues) {
if (publishFormValues.thumbnail && !this.state.uploadedThumbnailUri) {
const { thumbnail } = publishFormValues;
updatePublishFormState({ currentThumbnailUri: thumbnail, uploadedThumbnailUri: thumbnail });
this.setState({
currentThumbnailUri: thumbnail,
uploadedThumbnailUri: thumbnail,
uploadThumbnailStarted: false,
});
}
}
if (
this.state.currentPhase === Constants.PHASE_DETAILS &&
prevDrawerStack[prevDrawerStack.length - 1].route === Constants.DRAWER_ROUTE_PUBLISH_FORM &&