FIX: Lots of plugin tests were using old, non-Ember compat CLI APIs (#13320)
This commit is contained in:
@@ -98,7 +98,8 @@ export default Controller.extend(ModalFunctionality, {
|
||||
|
||||
@discourseComputed("pollOptions.@each.value")
|
||||
pollOptionsCount(pollOptions) {
|
||||
return pollOptions.filter((option) => option.value.length > 0).length;
|
||||
return (pollOptions || []).filter((option) => option.value.length > 0)
|
||||
.length;
|
||||
},
|
||||
|
||||
@discourseComputed("site.groups")
|
||||
|
||||
Reference in New Issue
Block a user