FIX: Check if popupMenuOptions is defined.
This commit is contained in:
parent
ddfb798276
commit
93715b5952
|
@ -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…
Reference in New Issue