diff --git a/src/categories/index.js b/src/categories/index.js index a1275481e8..76a16878d4 100644 --- a/src/categories/index.js +++ b/src/categories/index.js @@ -345,7 +345,7 @@ Categories.getChildrenCids = function (rootCid, callback) { if (err) { return callback(err); } - + childrenCids = childrenCids.filter(cid => !allCids.includes(parseInt(cid, 10))); if (!childrenCids.length) { return callback(); }