render comments if comments property exists

This commit is contained in:
Kentai Radiquum 2025-04-12 16:58:25 +05:00
parent 9d92c884e8
commit fd47aebca7
Signed by: Radiquum
GPG key ID: 858E8EE696525EED

View file

@ -41,7 +41,7 @@ export const CommentsMain = (props: {
</div> </div>
</div> </div>
<div className="flex flex-col gap-2"> <div className="flex flex-col gap-2">
{props.comments.map((comment: any) => ( {props.comments && props.comments.map((comment: any) => (
<CommentsComment <CommentsComment
key={comment.id} key={comment.id}
release_id={props.release_id} release_id={props.release_id}