Fixing bug in addItem in commentStream.

This commit is contained in:
David Jay
2016-12-08 16:55:42 -05:00
parent e4a13d433f
commit f0108e1434
2 changed files with 1 additions and 2 deletions
@@ -287,7 +287,7 @@ const mapStateToProps = state => ({
});
const mapDispatchToProps = (dispatch) => ({
addItem: (args) => dispatch(addItem.apply(args)),
addItem: (item, item_id) => dispatch(addItem(item, item_id)),
updateItem: (id, property, value, itemType) => dispatch(updateItem(id, property, value, itemType)),
postItem: (data, type, id) => dispatch(postItem(data, type, id)),
getStream: (rootId) => dispatch(getStream(rootId)),
-1
View File
@@ -33,7 +33,6 @@ class FlagButton extends Component {
this.setState({step: step + 1});
if (itemType && detail) {
console.log('OtherText', otherText);
const updatedDetail = otherText || detail;
const item_id = itemType === 'comments' ? id : author_id;
const action = {