From b5732a58e930f28cb8aa34d2d1d2ca741e2abd93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Thu, 21 Nov 2024 12:15:26 +0100 Subject: [PATCH] DataViews: fix action visibility logic (#67197) Co-authored-by: oandregal Co-authored-by: ntsekouras --- .../dataviews/src/components/dataviews-item-actions/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dataviews/src/components/dataviews-item-actions/index.tsx b/packages/dataviews/src/components/dataviews-item-actions/index.tsx index 47e65bc81cb171..787cef4420acc0 100644 --- a/packages/dataviews/src/components/dataviews-item-actions/index.tsx +++ b/packages/dataviews/src/components/dataviews-item-actions/index.tsx @@ -190,7 +190,7 @@ function hasOnlyOneActionAndIsPrimary< Item >( primaryActions: Action< Item >[], actions: Action< Item >[] ) { - return primaryActions.length === 1 && actions.length; + return primaryActions.length === 1 && actions.length === 1; } export default function ItemActions< Item >( {