mirror of
https://github.com/wassname/talk.git
synced 2026-07-18 12:40:13 +08:00
pass comment to presubmit hooks
This commit is contained in:
@@ -62,7 +62,7 @@ class CommentBox extends React.Component {
|
||||
};
|
||||
|
||||
// Execute preSubmit Hooks
|
||||
this.state.hooks.preSubmit.forEach((hook) => hook());
|
||||
this.state.hooks.preSubmit.forEach((hook) => hook(comment));
|
||||
this.setState({loadingState: 'loading'});
|
||||
|
||||
postComment(comment, 'comments')
|
||||
|
||||
Reference in New Issue
Block a user