From f8c3f75be32eeb8fb6b321e4af0be5c38d8e757d Mon Sep 17 00:00:00 2001 From: koji Date: Mon, 21 Oct 2024 11:53:37 -0400 Subject: [PATCH] Update EditModules.tsx --- protocol-designer/src/components/EditModules.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/protocol-designer/src/components/EditModules.tsx b/protocol-designer/src/components/EditModules.tsx index 49707bb6030..6ed7c8a6054 100644 --- a/protocol-designer/src/components/EditModules.tsx +++ b/protocol-designer/src/components/EditModules.tsx @@ -17,12 +17,12 @@ import { EditMultipleModulesModal } from './modals/EditModulesModal/EditMultiple import { useBlockingHint } from './Hints/useBlockingHint' import { MagneticModuleWarningModalContent } from './modals/EditModulesModal/MagneticModuleWarningModalContent' import { EditModulesModal } from './modals/EditModulesModal' -import type { ModuleModel, } from '@opentrons/shared-data' +import type { ModuleModel, ModuleType } from '@opentrons/shared-data' export interface EditModulesProps { moduleToEdit: { moduleId?: string | null - : + moduleType: ModuleType } onCloseClick: () => void } @@ -35,16 +35,16 @@ export interface ModelModuleInfo { export const EditModules = (props: EditModulesProps): JSX.Element => { const { onCloseClick, moduleToEdit } = props const enableMoam = useSelector(getEnableMoam) - const { moduleId, } = moduleToEdit + const { moduleId, moduleType } = moduleToEdit const _initialDeckSetup = useSelector(stepFormSelectors.getInitialDeckSetup) const robotType = useSelector(getRobotType) - const MOAM_MODULE_TYPES: [] = enableMoam + const MOAM_MODULE_TYPES: ModuleType[] = enableMoam ? [TEMPERATURE_MODULE_TYPE, HEATERSHAKER_MODULE_TYPE, MAGNETIC_BLOCK_TYPE] : [TEMPERATURE_MODULE_TYPE] const showMultipleModuleModal = - robotType === FLEX_ROBOT_TYPE && MOAM_MODULE_TYPES.includes() + robotType === FLEX_ROBOT_TYPE && MOAM_MODULE_TYPES.includes(moduleType) const moduleOnDeck = moduleId ? _initialDeckSetup.modules[moduleId] : null const [ @@ -94,7 +94,7 @@ export const EditModules = (props: EditModulesProps): JSX.Element => { let modal = ( { ) }