mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 07:26:13 +02:00
fixed #2207
This commit is contained in:
@@ -17,6 +17,11 @@ define('composer/categoryList', function() {
|
||||
return app.alertError(err.message);
|
||||
}
|
||||
|
||||
// Remove categories that are just external links
|
||||
categories = categories.filter(function(category) {
|
||||
return !category.link
|
||||
});
|
||||
|
||||
categories.forEach(function(category) {
|
||||
$('<option value="' + category.cid + '">' + category.name + '</option>').appendTo(listEl);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user