mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 21:57:36 +08:00
FIX: add protection just in case topic is not set
Under some conditions we may be loading the composer with no topic set. This code could fail leading to a broken composer.
This commit is contained in:
parent
fd083394cb
commit
97f581e1df
|
@ -91,7 +91,9 @@ export default DropdownSelectBoxComponent.extend({
|
|||
|
||||
if (
|
||||
this.action === REPLY &&
|
||||
this.topic &&
|
||||
this.topic.isPrivateMessage &&
|
||||
this.topic.details &&
|
||||
(this.topic.details.allowed_users.length > 1 ||
|
||||
this.topic.details.allowed_groups.length > 0) &&
|
||||
!this.isEditing &&
|
||||
|
|
Loading…
Reference in New Issue
Block a user