mirror of
https://github.com/discourse/discourse.git
synced 2025-06-23 02:31:33 +08:00
FIX: makes sure we have a content to filter
This commit is contained in:
@ -38,7 +38,7 @@ export default ComboBoxComponent.extend({
|
||||
|
||||
@computed("content")
|
||||
filterable(content) {
|
||||
return content.length >= 15;
|
||||
return content && content.length >= 15;
|
||||
},
|
||||
|
||||
@computed("allCategoriesUrl", "allCategoriesLabel", "noCategoriesUrl", "noCategoriesLabel")
|
||||
|
@ -33,7 +33,7 @@ export default ComboBoxComponent.extend({
|
||||
|
||||
@computed("content")
|
||||
filterable(content) {
|
||||
return content.length >= 15;
|
||||
return content && content.length >= 15;
|
||||
},
|
||||
|
||||
computeHeaderContent() {
|
||||
|
Reference in New Issue
Block a user