mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: sub-categories was not getting selected for pre-filled topics
This commit is contained in:
@@ -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
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user