We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf002c8 commit eb5d4deCopy full SHA for eb5d4de
1 file changed
packages/client/editor/src/components/react-flow/NodePicker/NodeItem.tsx
@@ -39,13 +39,15 @@ export const NodeItem = ({
39
</AccordionTrigger>
40
{item?.subItems &&
41
item.subItems.map((subItem: Partial<ItemType>) => {
42
- const sub = subItem?.subItems?.flatMap(subItem => subItem.type)
+ const sub = subItem?.subItems?.flatMap(
43
+ subItem => subItem.type
44
+ ) as string[]
45
return (
46
<AccordionContent
47
key={subItem.title}
48
onClick={e => {
49
e.stopPropagation()
- handleClick({ item: sub })
50
+ handleClick({ item: sub[0] })
51
}}
52
className={`py-2 pr-2 pl-6 border-b-0 border-t border-black hover:underline hover:bg-[#282d33] cursor-pointer`}
53
>
0 commit comments