From e69f8f3eb0ea015fede0e1c24b7dea134bf831f8 Mon Sep 17 00:00:00 2001 From: smb2268 Date: Thu, 30 Jan 2025 14:39:19 -0500 Subject: [PATCH] Fix TS errors --- shared-data/command/types/setup.ts | 2 +- shared-data/js/helpers/getAddressableAreasInProtocol.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shared-data/command/types/setup.ts b/shared-data/command/types/setup.ts index 07d992132a6..7180abfd6f9 100644 --- a/shared-data/command/types/setup.ts +++ b/shared-data/command/types/setup.ts @@ -119,7 +119,7 @@ export type SetupCreateCommand = | LoadLiquidCreateCommand | MoveLabwareCreateCommand | LoadLidCreateCommand - | LoadLidRunTimeCommand + | LoadLidStackCreateCommand export type LabwareLocation = | 'offDeck' diff --git a/shared-data/js/helpers/getAddressableAreasInProtocol.ts b/shared-data/js/helpers/getAddressableAreasInProtocol.ts index 475eac8d01a..9b972d0accf 100644 --- a/shared-data/js/helpers/getAddressableAreasInProtocol.ts +++ b/shared-data/js/helpers/getAddressableAreasInProtocol.ts @@ -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 && @@ -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 &&