mirror of
https://github.com/wassname/talk.git
synced 2026-10-29 13:40:57 +08:00
pass comment to presubmit hooks
This commit is contained in:
1 parent
3740dd98e8
commit
b62ab9bff0
1 file changed
+1
-1
@@ -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