From 8d2690c535c7184cb592cb5a7e8016332a666654 Mon Sep 17 00:00:00 2001 From: Cole Bemis Date: Wed, 19 Apr 2023 14:01:16 -0600 Subject: [PATCH] Fix flexbox logic --- src/ActionList/Item.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ActionList/Item.tsx b/src/ActionList/Item.tsx index 8a240388ae6..d594cc66f66 100644 --- a/src/ActionList/Item.tsx +++ b/src/ActionList/Item.tsx @@ -213,7 +213,7 @@ export const Item = React.forwardRef( as="span" id={labelId} sx={{ - flexGrow: slots.description?.props.variant !== 'block' ? 0 : 1, + flexGrow: slots.description && slots.description.props.variant !== 'block' ? 0 : 1, fontWeight: slots.description && slots.description.props.variant !== 'block' ? 'bold' : 'normal', }} >