From d886b6f2d075af654ea173c607521e81af8d7bd6 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Thu, 12 Oct 2023 14:21:23 -0400 Subject: [PATCH] fix: handling of children --- src/components/lume/LumeDashboard/LumeDashboard.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/lume/LumeDashboard/LumeDashboard.tsx b/src/components/lume/LumeDashboard/LumeDashboard.tsx index 149aea6..b399f47 100644 --- a/src/components/lume/LumeDashboard/LumeDashboard.tsx +++ b/src/components/lume/LumeDashboard/LumeDashboard.tsx @@ -38,7 +38,9 @@ const LumeDashboard = (props: any) => { ); - const GivenTrigger = React.Children.toArray(children.children) + const GivenTrigger = React.Children.toArray( + children?.children || (children as any) || [], + ) .filter((c) => { if (typeof c === "object") { //@ts-expect-error -- I dont know what the type of this should be, i just know that this works