From f0108e14348d0642e4487d4aa466e665605e515d Mon Sep 17 00:00:00 2001 From: David Jay Date: Thu, 8 Dec 2016 16:55:42 -0500 Subject: [PATCH] Fixing bug in addItem in commentStream. --- client/coral-embed-stream/src/CommentStream.js | 2 +- client/coral-plugin-flags/FlagButton.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/client/coral-embed-stream/src/CommentStream.js b/client/coral-embed-stream/src/CommentStream.js index 0b0a6eb3c..ff04c7b32 100644 --- a/client/coral-embed-stream/src/CommentStream.js +++ b/client/coral-embed-stream/src/CommentStream.js @@ -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)), diff --git a/client/coral-plugin-flags/FlagButton.js b/client/coral-plugin-flags/FlagButton.js index 70e167e2b..e749ffa34 100644 --- a/client/coral-plugin-flags/FlagButton.js +++ b/client/coral-plugin-flags/FlagButton.js @@ -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 = {