From 8b7de65a2219dd0350cb7374d0f36b800961bc58 Mon Sep 17 00:00:00 2001 From: Livio Gamassia Date: Fri, 8 Nov 2024 17:30:29 +0100 Subject: [PATCH] fix: props can be undefined making stacks crash (#40) --- src/components/stack/stack.component.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/stack/stack.component.tsx b/src/components/stack/stack.component.tsx index 253c43e..f55c369 100644 --- a/src/components/stack/stack.component.tsx +++ b/src/components/stack/stack.component.tsx @@ -104,7 +104,7 @@ const Stack: React.FunctionComponent = (incomingProps) => { {!!item && ( - {item} + {item} {index !== children.length - 1 ? ( ) : null}