diff --git a/client/coral-embed-stream/src/tabs/stream/components/CommentForm.js b/client/coral-embed-stream/src/tabs/stream/components/CommentForm.js index b4f636f46..65937b3ce 100644 --- a/client/coral-embed-stream/src/tabs/stream/components/CommentForm.js +++ b/client/coral-embed-stream/src/tabs/stream/components/CommentForm.js @@ -50,10 +50,11 @@ class CommentForm extends React.Component { onCancel: PropTypes.func, state: PropTypes.string, loadingState: PropTypes.oneOf(['', 'loading', 'success', 'error']), - comment: PropTypes.object, registerHook: PropTypes.func, unregisterHook: PropTypes.func, isReply: PropTypes.bool, + root: PropTypes.object.isRequired, + comment: PropTypes.object, }; static get defaultProps() { return { @@ -92,6 +93,7 @@ class CommentForm extends React.Component { body, loadingState, comment, + root, } = this.props; const length = body.length; @@ -109,6 +111,7 @@ class CommentForm extends React.Component { return (
} {showCommentBox && (