fix: handling of children
This commit is contained in:
parent
9c218a44d6
commit
d886b6f2d0
|
@ -38,7 +38,9 @@ const LumeDashboard = (props: any) => {
|
||||||
</button>
|
</button>
|
||||||
</LumeDashboardTrigger>
|
</LumeDashboardTrigger>
|
||||||
);
|
);
|
||||||
const GivenTrigger = React.Children.toArray(children.children)
|
const GivenTrigger = React.Children.toArray(
|
||||||
|
children?.children || (children as any) || [],
|
||||||
|
)
|
||||||
.filter((c) => {
|
.filter((c) => {
|
||||||
if (typeof c === "object") {
|
if (typeof c === "object") {
|
||||||
//@ts-expect-error -- I dont know what the type of this should be, i just know that this works
|
//@ts-expect-error -- I dont know what the type of this should be, i just know that this works
|
||||||
|
|
Loading…
Reference in New Issue