mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 09:36:16 +01:00
fix: category selector disabled categories
This commit is contained in:
@@ -286,7 +286,7 @@ function checkVisibleChildren(c, cidToAllowed, cidToWatchState, states) {
|
|||||||
if (!c || !Array.isArray(c.children)) {
|
if (!c || !Array.isArray(c.children)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return c.children.some(c => c && (
|
return c.children.some(c => c && !c.disabled && (
|
||||||
(cidToAllowed[c.cid] && states.includes(cidToWatchState[c.cid])) || checkVisibleChildren(c, cidToAllowed, cidToWatchState, states)
|
(cidToAllowed[c.cid] && states.includes(cidToWatchState[c.cid])) || checkVisibleChildren(c, cidToAllowed, cidToWatchState, states)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user