mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-04 11:10:04 -04:00
FIX: Check if popupMenuOptions is defined.
This commit is contained in:
parent
ddfb798276
commit
93715b5952
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ export default Ember.Controller.extend({
|
|||
|
||||
@computed("popupMenuOptions")
|
||||
showPopupMenu(popupMenuOptions) {
|
||||
return popupMenuOptions.some(option => option.condition);
|
||||
return popupMenuOptions ? popupMenuOptions.some(option => option.condition) : false;
|
||||
},
|
||||
|
||||
@computed("model.composeState")
|
||||
|
|
Loading…
Add table
Reference in a new issue