From 6e94f28cf06504956f720d96bb1241bcc5d411fa Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 17 Jul 2020 14:37:08 -0400 Subject: [PATCH] FIX: Error in test mode with missing `topic` --- .../javascripts/select-kit/addon/components/composer-actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/select-kit/addon/components/composer-actions.js b/app/assets/javascripts/select-kit/addon/components/composer-actions.js index 0fb5fdd5a71..540aca54cd5 100644 --- a/app/assets/javascripts/select-kit/addon/components/composer-actions.js +++ b/app/assets/javascripts/select-kit/addon/components/composer-actions.js @@ -114,7 +114,7 @@ export default DropdownSelectBoxComponent.extend({ if ( this.action !== CREATE_TOPIC && this.action !== CREATE_SHARED_DRAFT && - !(this.action === REPLY && this.topic.isPrivateMessage) && + !(this.action === REPLY && this.topic && this.topic.isPrivateMessage) && !this.isEditing && _topicSnapshot ) {