diff --git a/labware-library/src/labware-creator/components/sections/Volume.tsx b/labware-library/src/labware-creator/components/sections/Volume.tsx index 5e1f353dbda..f84ff9a5c7c 100644 --- a/labware-library/src/labware-creator/components/sections/Volume.tsx +++ b/labware-library/src/labware-creator/components/sections/Volume.tsx @@ -16,10 +16,11 @@ interface ContentProps { } const Content = (props: ContentProps): JSX.Element => { const { values } = props - // @ts-expect-error `includes` doesn't want to take null/undefined - const wellLabel = ['aluminumBlock', 'tubeRack'].includes(values.labwareType) - ? 'tube' - : 'well' + const wellLabel = + values.labwareType != null && + ['aluminumBlock', 'tubeRack'].includes(values.labwareType) + ? 'tube' + : 'well' return (