Skip to content

Commit

Permalink
Add safety null check
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 committed Apr 18, 2024
1 parent d66b676 commit c185959
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/organisms/QuickTransferFlow/SelectTipRack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export function SelectTipRack(props: SelectTipRackProps): JSX.Element {
>
{selectedPipetteDefaultTipracks.map(tipRack => {
const tipRackDef = allLabwareDefinitionsByUri[tipRack]
return (

return tipRackDef != null ? (
<LargeButton
buttonType={
selectedTipRack === tipRackDef ? 'primary' : 'secondary'
Expand All @@ -71,7 +72,7 @@ export function SelectTipRack(props: SelectTipRackProps): JSX.Element {
}}
buttonText={tipRackDef.metadata.displayName}
/>
)
) : null
})}
</Flex>
</Flex>
Expand Down

0 comments on commit c185959

Please sign in to comment.