Selectors, resolving merge errors, better class names, removing comment reducer

This commit is contained in:
Chi Vinh Le
2017-06-08 00:29:05 +07:00
parent c8534a91a6
commit 66e4f02a1a
18 changed files with 50 additions and 60 deletions
@@ -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);
}
}