mirror of
https://github.com/discourse/discourse.git
synced 2025-02-19 06:02:46 +08:00
DEV: optimize fix for sub-categories not getting pre-filled.
This commit is contained in:
parent
c909033f2b
commit
102be5a9e3
|
@ -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
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user