diff --git a/apps/comments-ui/src/components/IFrame.tsx b/apps/comments-ui/src/components/IFrame.tsx index 611a7d03e5..09660ec3f6 100644 --- a/apps/comments-ui/src/components/IFrame.tsx +++ b/apps/comments-ui/src/components/IFrame.tsx @@ -59,7 +59,9 @@ class IFrame extends Component { setNode(node: any) { this.node = node; - this.props.innerRef.current = node; + if (this.props.innerRef) { + this.props.innerRef.current = node; + } } render() { diff --git a/apps/comments-ui/src/components/content/forms/Form.tsx b/apps/comments-ui/src/components/content/forms/Form.tsx index 0e4e74bea9..6e5f22fafe 100644 --- a/apps/comments-ui/src/components/content/forms/Form.tsx +++ b/apps/comments-ui/src/components/content/forms/Form.tsx @@ -160,6 +160,7 @@ const FormHeader: React.FC = ({show, name, expertise, editName,