Skip to content

Commit

Permalink
fix(app): fix random white spaces in robot list when sending a protoc…
Browse files Browse the repository at this point in the history
…ol (#13562)
  • Loading branch information
mjhuff authored Sep 15, 2023
1 parent a0e7785 commit d9f202d
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions app/src/organisms/ChooseRobotSlideout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,26 +223,24 @@ export function ChooseRobotSlideout(
selectedRobot != null && selectedRobot.ip === robot.ip
return (
<>
<Flex key={robot.ip} flexDirection={DIRECTION_COLUMN}>
<AvailableRobotOption
key={robot.ip}
robot={robot}
// TODO: generalize to a disabled/reset prop
onClick={() => {
if (!isCreatingRun) {
resetCreateRun?.()
setSelectedRobot(robot)
}
}}
isError={runCreationError != null}
isSelected={isSelected}
isOnDifferentSoftwareVersion={
isSelectedRobotOnWrongVersionOfSoftware
<AvailableRobotOption
key={robot.ip}
robot={robot}
// TODO: generalize to a disabled/reset prop
onClick={() => {
if (!isCreatingRun) {
resetCreateRun?.()
setSelectedRobot(robot)
}
showIdleOnly={showIdleOnly}
registerRobotBusyStatus={registerRobotBusyStatus}
/>
</Flex>
}}
isError={runCreationError != null}
isSelected={isSelected}
isOnDifferentSoftwareVersion={
isSelectedRobotOnWrongVersionOfSoftware
}
showIdleOnly={showIdleOnly}
registerRobotBusyStatus={registerRobotBusyStatus}
/>
{runCreationError != null && isSelected && (
<StyledText
as="label"
Expand Down

0 comments on commit d9f202d

Please sign in to comment.