FIX: topic footer flag button was broken

This commit is contained in:
Arpit Jalan 2016-05-12 23:20:37 +05:30
parent 21279c7fb9
commit 6d2b85d5e5
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
}.property('post', 'flagTopic', 'model.actions_summary.@each.can_act'),
staffFlagsAvailable: function() {
return (this.get('model.flagsAvailable').length > 1);
return (this.get('model.flagsAvailable') && this.get('model.flagsAvailable').length > 1);
}.property('post', 'flagTopic', 'model.actions_summary.@each.can_act'),
submitEnabled: function() {