fix category-row regressions

This commit is contained in:
Joffrey JAFFEUX
2018-03-27 14:11:05 +02:00
committed by GitHub
parent ff9d7a9bfb
commit 15aa712227
2 changed files with 5 additions and 3 deletions
@@ -82,6 +82,8 @@ export default SelectKitRowComponent.extend({
@computed("category.description")
description(description) {
return `${description.substr(0, 200)}${description.length > 200 ? '…' : ''}`;
if (description) {
return `${description.substr(0, 200)}${description.length > 200 ? '…' : ''}`;
}
}
});