mirror of
https://github.com/wassname/talk.git
synced 2026-08-07 11:29:44 +08:00
Make design responsive
This commit is contained in:
@@ -22,7 +22,10 @@ export class ReplyListContainer extends React.Component<InnerProps> {
|
||||
};
|
||||
|
||||
public render() {
|
||||
if (this.props.comment.replies === null) {
|
||||
if (
|
||||
this.props.comment.replies === null ||
|
||||
this.props.comment.replies.edges.length === 0
|
||||
) {
|
||||
return null;
|
||||
}
|
||||
const comments = this.props.comment.replies.edges.map(edge => edge.node);
|
||||
|
||||
Reference in New Issue
Block a user