Skip to content

Commit

Permalink
fix(app): fix robotType condition for overflow menu in protocol card (#…
Browse files Browse the repository at this point in the history
…16079)

*fix(app): fix robotType condition for overflow menu in protocol card
  • Loading branch information
koji authored Aug 22, 2024
1 parent 411c88a commit dbb1353
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/organisms/ProtocolsLanding/ProtocolOverflowMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLButtonElement> = e => {
e.preventDefault()
Expand Down Expand Up @@ -117,6 +115,7 @@ export function ProtocolOverflowMenu(
navigate(`/protocols/${protocolKey}/timeline`)
setShowOverflowMenu(prevShowOverflowMenu => !prevShowOverflowMenu)
}

return (
<Flex
flexDirection={DIRECTION_COLUMN}
Expand Down

0 comments on commit dbb1353

Please sign in to comment.