From dbb1353ae00576474c7701252f69dbefc12de815 Mon Sep 17 00:00:00 2001 From: koji Date: Thu, 22 Aug 2024 22:34:01 +0900 Subject: [PATCH] fix(app): fix robotType condition for overflow menu in protocol card (#16079) *fix(app): fix robotType condition for overflow menu in protocol card --- app/src/organisms/ProtocolsLanding/ProtocolOverflowMenu.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/organisms/ProtocolsLanding/ProtocolOverflowMenu.tsx b/app/src/organisms/ProtocolsLanding/ProtocolOverflowMenu.tsx index 9412939d23f..2bca176de84 100644 --- a/app/src/organisms/ProtocolsLanding/ProtocolOverflowMenu.tsx +++ b/app/src/organisms/ProtocolsLanding/ProtocolOverflowMenu.tsx @@ -74,9 +74,7 @@ export function ProtocolOverflowMenu( }, true) const robotType = - mostRecentAnalysis != null && mostRecentAnalysis.errors.length === 0 - ? mostRecentAnalysis?.robotType ?? null - : null + mostRecentAnalysis != null ? mostRecentAnalysis?.robotType ?? null : null const handleClickShowInFolder: React.MouseEventHandler = e => { e.preventDefault() @@ -117,6 +115,7 @@ export function ProtocolOverflowMenu( navigate(`/protocols/${protocolKey}/timeline`) setShowOverflowMenu(prevShowOverflowMenu => !prevShowOverflowMenu) } + return (