FIX: Check if popupMenuOptions is defined.

This commit is contained in:
Guo Xiang Tan 2016-06-17 11:35:36 +08:00
parent ddfb798276
commit 93715b5952
No known key found for this signature in database
GPG Key ID: 19C321C8952B0F72
1 changed files with 1 additions and 1 deletions

View File

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