ContextMenuAPI: Fix findGroupChildrenByChildId
This commit is contained in:
parent
c3f2e76b9c
commit
cb2848f186
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ export function findGroupChildrenByChildId(id: string | string[], children: Arra
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(Array.isArray(id) && id.some(id => matchSubstring ? child.props?.id?.includes(id) : child.props?.id === id))
|
(Array.isArray(id) && id.some(id => matchSubstring ? child.props?.id?.includes(id) : child.props?.id === id))
|
||||||
|| matchSubstring ? child.props?.id?.includes(id) : child.props?.id === id
|
|| (matchSubstring ? child.props?.id?.includes(id) : child.props?.id === id)
|
||||||
) return children;
|
) return children;
|
||||||
|
|
||||||
let nextChildren = child.props?.children;
|
let nextChildren = child.props?.children;
|
||||||
|
|
Loading…
Reference in a new issue