mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
fix: #7826, fix order of categories on recent dropdown
This commit is contained in:
@@ -273,7 +273,7 @@ function getCategoryData(cids, uid, selectedCid, callback) {
|
||||
}
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
categories.getCategoriesFields(cids, ['cid', 'name', 'slug', 'icon', 'link', 'color', 'bgColor', 'parentCid', 'image', 'imageClass'], next);
|
||||
categories.getCategoriesFields(cids, ['cid', 'order', 'name', 'slug', 'icon', 'link', 'color', 'bgColor', 'parentCid', 'image', 'imageClass'], next);
|
||||
},
|
||||
function (categoryData, next) {
|
||||
categoryData = categoryData.filter(category => category && !category.link);
|
||||
|
||||
Reference in New Issue
Block a user