FIX: Lots of plugin tests were using old, non-Ember compat CLI APIs (#13320)

This commit is contained in:
Robin Ward
2021-06-09 10:58:55 -04:00
committed by GitHub
parent 3b6d6c7024
commit 77d33ebe21
24 changed files with 514 additions and 422 deletions
@@ -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")