FIX: makes sure we have a content to filter

This commit is contained in:
Joffrey JAFFEUX 2018-02-02 02:13:06 +01:00 committed by GitHub
parent a4445b0c1e
commit 85db6cd2d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ export default ComboBoxComponent.extend({
@computed("content") @computed("content")
filterable(content) { filterable(content) {
return content.length >= 15; return content && content.length >= 15;
}, },
@computed("allCategoriesUrl", "allCategoriesLabel", "noCategoriesUrl", "noCategoriesLabel") @computed("allCategoriesUrl", "allCategoriesLabel", "noCategoriesUrl", "noCategoriesLabel")

View File

@ -33,7 +33,7 @@ export default ComboBoxComponent.extend({
@computed("content") @computed("content")
filterable(content) { filterable(content) {
return content.length >= 15; return content && content.length >= 15;
}, },
computeHeaderContent() { computeHeaderContent() {