From cb2848f186f3d074d1a3390643aba70fa481eb6b Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Tue, 24 Sep 2024 02:13:44 -0300 Subject: [PATCH] ContextMenuAPI: Fix findGroupChildrenByChildId --- src/api/ContextMenu.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/ContextMenu.ts b/src/api/ContextMenu.ts index fd8c7e100..114942ff6 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;