FIX: Error in test mode with missing `topic`

This commit is contained in:
Robin Ward 2020-07-17 14:37:08 -04:00
parent f68ea29236
commit 6e94f28cf0
1 changed files with 1 additions and 1 deletions

View File

@ -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
) {