Merge pull request #567 from esteemapp/bugfix/502

Removed save draft from reply
This commit is contained in:
uğur erdal 2019-02-12 11:13:01 +03:00 committed by GitHub
commit 241daaa744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -127,7 +127,7 @@ class EditorScreen extends Component {
};
_handleFormUpdate = (componentID, content) => {
const { handleFormChanged } = this.props;
const { handleFormChanged, isReply } = this.props;
const fields = { ...this.state.fields };
if (componentID === 'body') {
@ -141,7 +141,7 @@ class EditorScreen extends Component {
handleFormChanged();
this._handleIsFormValid();
this._saveCurrentDraft();
if (isReply) this._saveCurrentDraft();
};
_handleOnTagAdded = (tags) => {
@ -149,7 +149,7 @@ class EditorScreen extends Component {
const fields = { ...this.state.fields };
fields.tags = _tags;
this.setState({ fields, isRemoveTag: false, });
this.setState({ fields, isRemoveTag: false });
};
render() {