DEV: optimize fix for sub-categories not getting pre-filled.

This commit is contained in:
Arpit Jalan 2019-06-17 13:28:08 +05:30
parent c909033f2b
commit 102be5a9e3
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ export default Discourse.Route.extend({
category = categories.find(item => {
return (
item &&
item.get(type) === subCategory.toLowerCase() &&
item[type] === subCategory.toLowerCase() &&
item.parent_category_id === main.id
);
});