const maxComments = this.props.maxCommentsShown ?? this.props.nodes.length;
const borderColor = this.props.depth
- ? colorList[this.props.depth % colorList.length]
+ ? colorList[(this.props.depth - 1) % colorList.length]
: colorList[0];
return (
"ms-1": !!this.props.isChild,
"border-top border-light": !this.props.noBorder,
})}
- style={`border-left: 2px solid ${borderColor} !important;`}
+ style={
+ this.props.isChild
+ ? `border-left: 2px solid ${borderColor} !important;`
+ : undefined
+ }
>
{this.props.nodes.slice(0, maxComments).map(node => (
<CommentNode