From 976a03c9e55281ad9ef07dc484c32e6dbd400553 Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Sun, 19 Jun 2022 22:27:39 +0100 Subject: [PATCH] fix: post mention notification errors with _no content_ subjects (#3493) Co-authored-by: David Wheatley --- .../js/src/forum/components/PostMentionedNotification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/mentions/js/src/forum/components/PostMentionedNotification.js b/extensions/mentions/js/src/forum/components/PostMentionedNotification.js index 42651aa1b..6271833aa 100644 --- a/extensions/mentions/js/src/forum/components/PostMentionedNotification.js +++ b/extensions/mentions/js/src/forum/components/PostMentionedNotification.js @@ -23,6 +23,6 @@ export default class PostMentionedNotification extends Notification { } excerpt() { - return truncate(this.attrs.notification.subject().contentPlain(), 200); + return truncate(this.attrs.notification.subject().contentPlain() || '', 200); } }