diff --git a/src/editor/widgets/comment/CommentWidget.jsx b/src/editor/widgets/comment/CommentWidget.jsx index fc6d266..34e67ee 100644 --- a/src/editor/widgets/comment/CommentWidget.jsx +++ b/src/editor/widgets/comment/CommentWidget.jsx @@ -15,7 +15,7 @@ const isComment = (body, matchAllPurposes) => { validPurposes.indexOf(body.purpose) > -1 : body.purpose == 'commenting' || body.purpose == 'replying'; return body.type === 'TextualBody' && ( - !body.hasOwnProperty('purpose') || hasMatchingPurpose + !Object.prototype.hasOwnProperty.call(body, 'purpose') || hasMatchingPurpose ); }