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
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.type === subCategory.toLowerCase() &&
item.get(type) === subCategory.toLowerCase() &&
item.parent_category_id === main.id
);
});