remove useless request on edit

This commit is contained in:
igoradamenko
2018-05-18 20:16:41 +03:00
parent bc1fbd6f42
commit ebda2514ec
2 changed files with 5 additions and 7 deletions
+2 -2
View File
@@ -85,9 +85,9 @@ export default class Input extends Component {
if (mods.mode === 'edit') {
api.edit({ text, id })
.then(() => {
.then(comment => {
if (this.props.onSubmit) {
this.props.onSubmit({ id });
this.props.onSubmit(comment);
}
this.fieldNode.value = '';