added reply condiditon

This commit is contained in:
u-e 2019-02-11 13:51:47 +03:00
parent c4defec498
commit 1da5cc3421
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,15 +141,15 @@ class EditorScreen extends Component {
handleFormChanged();
this._handleIsFormValid();
this._saveCurrentDraft();
if (isReply) this._saveCurrentDraft();
};
_handleOnTagAdded = (tags) => {
const _tags = tags.filter(tag => tag && tag !== ' ');
const fields = { ...this.state.fields };
fields.tags = _tags;
this.setState({ fields, isRemoveTag: false, });
this.setState({ fields, isRemoveTag: false });
};
render() {