mirror of
https://github.com/wassname/talk.git
synced 2026-09-10 12:43:11 +08:00
Selectors, resolving merge errors, better class names, removing comment reducer
This commit is contained in:
@@ -9,7 +9,7 @@ export default class OffTopicCheckbox extends React.Component {
|
||||
|
||||
componentDidMount() {
|
||||
this.clearTagsHook = this.props.registerHook('postSubmit', () => {
|
||||
const idx = this.props.commentBox.tags.indexOf(this.label);
|
||||
const idx = this.props.tags.indexOf(this.label);
|
||||
this.props.removeTag(idx);
|
||||
});
|
||||
}
|
||||
@@ -23,7 +23,7 @@ export default class OffTopicCheckbox extends React.Component {
|
||||
if (e.target.checked) {
|
||||
addTag(this.label);
|
||||
} else {
|
||||
const idx = this.props.commentBox.tags.indexOf(this.label);
|
||||
const idx = this.props.tags.indexOf(this.label);
|
||||
removeTag(idx);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user