mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-20 19:50:34 +02:00
forgot parseInt
This commit is contained in:
@@ -303,7 +303,7 @@ var async = require('async'),
|
||||
categoriesData = _categoriesData;
|
||||
|
||||
parentCids = categoriesData.filter(function(category) {
|
||||
return category && category.hasOwnProperty('parentCid') && category.parentCid;
|
||||
return category && category.hasOwnProperty('parentCid') && parseInt(category.parentCid, 10);
|
||||
}).map(function(category) {
|
||||
return parseInt(category.parentCid, 10);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user