Skip to content

Commit

Permalink
Fix TS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
smb2268 committed Jan 30, 2025
1 parent 511003d commit e69f8f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shared-data/command/types/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export type SetupCreateCommand =
| LoadLiquidCreateCommand
| MoveLabwareCreateCommand
| LoadLidCreateCommand
| LoadLidRunTimeCommand
| LoadLidStackCreateCommand

export type LabwareLocation =
| 'offDeck'
Expand Down
4 changes: 2 additions & 2 deletions shared-data/js/helpers/getAddressableAreasInProtocol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function getAddressableAreasInProtocol(
(acc, command) => {
const { commandType, params } = command
if (
(commandType === 'moveLabware' || commandType === 'moveLid') &&
commandType === 'moveLabware' &&
params.newLocation !== 'offDeck' &&
params.newLocation !== 'systemLocation' &&
'slotName' in params.newLocation &&
Expand All @@ -34,7 +34,7 @@ export function getAddressableAreasInProtocol(
return [...acc, addressableAreaName]
}
} else if (
(commandType === 'moveLabware' || commandType === 'moveLid') &&
commandType === 'moveLabware' &&
params.newLocation !== 'offDeck' &&
params.newLocation !== 'systemLocation' &&
'addressableAreaName' in params.newLocation &&
Expand Down

0 comments on commit e69f8f3

Please sign in to comment.