mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
Fixed comments of deleted members throwing error
This commit is contained in:
parent
7ecf063b42
commit
1c878615a8
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user