Added check in Comment to see if data exists before rendering

• Added:
- check in Comment to see if data exists before rendering
This commit is contained in:
Developer 2021-02-18 16:24:06 -05:00
parent 4696307cc9
commit e8f50b7ad5
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ class Comment extends ImmutablePureComponent {
ancestorAccountId, ancestorAccountId,
} = this.props } = this.props
if (!status) return null
if (isHidden) { if (isHidden) {
return ( return (
<div tabIndex='0' ref={this.setContainerNode}> <div tabIndex='0' ref={this.setContainerNode}>