From 5ec4cb387461c8276449a648c1c85900099d6847 Mon Sep 17 00:00:00 2001 From: Jamey H Date: Thu, 16 Nov 2023 15:59:34 -0500 Subject: [PATCH] fix(app): fix double rendering labware in basedeck component (#14011) Closes RQA-1899 Adds logic to prevent duplicate rendering of labware if it has already been rendered on top of a module. --- app/src/organisms/LabwarePositionCheck/PrepareSpace.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/organisms/LabwarePositionCheck/PrepareSpace.tsx b/app/src/organisms/LabwarePositionCheck/PrepareSpace.tsx index 6fdf7b5b79b..7c469acdfcf 100644 --- a/app/src/organisms/LabwarePositionCheck/PrepareSpace.tsx +++ b/app/src/organisms/LabwarePositionCheck/PrepareSpace.tsx @@ -112,7 +112,9 @@ export const PrepareSpace = (props: PrepareSpaceProps): JSX.Element | null => { labwareLocation: location, definition: labwareDef, }, - ]} + ].filter( + () => !('moduleModel' in location && location.moduleModel != null) + )} deckConfig={deckConfig} />