FIX: sub-categories was not getting selected for pre-filled topics

This commit is contained in:
Arpit Jalan
2019-06-15 13:46:15 +05:30
parent 9cb656250d
commit 48b9e0d749

View File

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