From f347a45fd13a071c3b27f3294b4e646c31880291 Mon Sep 17 00:00:00 2001 From: Alexander Skvortsov Date: Mon, 5 Oct 2020 14:40:33 -0400 Subject: [PATCH] Catch promise reject when not logged in on reply --- framework/core/js/src/forum/components/ReplyPlaceholder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/js/src/forum/components/ReplyPlaceholder.js b/framework/core/js/src/forum/components/ReplyPlaceholder.js index 23729799e..a482b6447 100644 --- a/framework/core/js/src/forum/components/ReplyPlaceholder.js +++ b/framework/core/js/src/forum/components/ReplyPlaceholder.js @@ -33,7 +33,7 @@ export default class ReplyPlaceholder extends Component { } const reply = () => { - DiscussionControls.replyAction.call(this.attrs.discussion, true); + DiscussionControls.replyAction.call(this.attrs.discussion, true).catch(() => {}); }; return (