fix frontend linting errors
This commit is contained in:
@@ -439,10 +439,7 @@ export default class Comment extends Component {
|
||||
<article className={b('comment', props, defaultMods)}>
|
||||
<div className="comment__body">
|
||||
<div className="comment__title">
|
||||
<a
|
||||
className="comment__title-link"
|
||||
href={`${o.locator.url}#${COMMENT_NODE_CLASSNAME_PREFIX}${o.id}`}
|
||||
>
|
||||
<a className="comment__title-link" href={`${o.locator.url}#${COMMENT_NODE_CLASSNAME_PREFIX}${o.id}`}>
|
||||
{o.title}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user