ContextMenuAPI: Fix findGroupChildrenByChildId

This commit is contained in:
Nuckyz 2024-09-24 02:13:44 -03:00
parent c3f2e76b9c
commit cb2848f186
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -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;