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
+3 -5
View File
@@ -167,11 +167,9 @@ export default class Root extends Component {
});
}
editComment(data) {
api.getComment({ id: data.id }).then(comment => {
store.replaceComment(comment);
this.setState({ comments: store.get('comments') });
});
editComment(comment) {
store.replaceComment(comment);
this.setState({ comments: store.get('comments') });
}
render({}, { config = {}, comments = [], user, sort, isLoaded, isBlockedVisible, isCommentsListLoading, bannedUsers }) {