mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 05:25:16 -05:00
fix category-row regressions
This commit is contained in:
@@ -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 ? '…' : ''}`;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user