diff --git a/src/api/ContextMenu.ts b/src/api/ContextMenu.ts index fd8c7e10..114942ff 100644 --- a/src/api/ContextMenu.ts +++ b/src/api/ContextMenu.ts @@ -103,7 +103,7 @@ export function findGroupChildrenByChildId(id: string | string[], children: Arra if ( (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; let nextChildren = child.props?.children;