mirror of
https://github.com/wassname/talk.git
synced 2026-07-15 11:26:58 +08:00
Fixing bug in addItem in commentStream.
This commit is contained in:
@@ -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)),
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user