From 9dc83f5261524887ec80d1dd8219a0f6a2b711be Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Sat, 5 Jan 2019 22:24:37 +0200 Subject: [PATCH] fix frontend linting errors --- web/app/components/comment/comment.jsx | 5 +---- web/app/components/input/input.jsx | 7 ++++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/web/app/components/comment/comment.jsx b/web/app/components/comment/comment.jsx index 4b325ac8..a7482898 100644 --- a/web/app/components/comment/comment.jsx +++ b/web/app/components/comment/comment.jsx @@ -439,10 +439,7 @@ export default class Comment extends Component {
- + {o.title}
diff --git a/web/app/components/input/input.jsx b/web/app/components/input/input.jsx index c1197ecf..8fe1aa55 100644 --- a/web/app/components/input/input.jsx +++ b/web/app/components/input/input.jsx @@ -73,9 +73,10 @@ export default class Input extends Component { this.setState({ isDisabled: true, isErrorShown: false }); - const request = mods.mode === 'edit' - ? api.updateComment({ text, id }) - : api.addComment({ title: pageTitle || document.title, text, ...(pid ? { pid } : {}) }); + const request = + mods.mode === 'edit' + ? api.updateComment({ text, id }) + : api.addComment({ title: pageTitle || document.title, text, ...(pid ? { pid } : {}) }); request .then(comment => {