diff --git a/packages/components/src/components/List/components/Items/components/Item/hooks/useGridItemProps.tsx b/packages/components/src/components/List/components/Items/components/Item/hooks/useGridItemProps.tsx index 04354995d..4efa65d46 100644 --- a/packages/components/src/components/List/components/Items/components/Item/hooks/useGridItemProps.tsx +++ b/packages/components/src/components/List/components/Items/components/Item/hooks/useGridItemProps.tsx @@ -34,9 +34,11 @@ export const useGridItemProps = (props: P) => { if (!accordion) { return { gridItemProps: { - onAction: () => { - onAction?.(data); - }, + onAction: onAction + ? () => { + onAction?.(data); + } + : undefined, }, children, };