Fixed comments of deleted members throwing error

This commit is contained in:
Simon Backx 2022-08-05 10:15:50 +02:00
parent 7ecf063b42
commit 1c878615a8

View File

@ -63,7 +63,7 @@ const Comment = ({updateIsEditing = null, isEditing, ...props}) => {
// If this comment is from the current member, always override member
// with the member from the context, so we update the bio in existing comments when we change it
const memberBio = member && comment.member.uuid === member.uuid ? member.bio : comment.member.bio;
const memberBio = member && comment.member && comment.member.uuid === member.uuid ? member.bio : comment?.member?.bio;
if (isInEditMode) {
return (