Skip to content

Commit

Permalink
fix(protocol-designer): getIsSlotEmpty logic util fix for modules and…
Browse files Browse the repository at this point in the history
… labware (#14188)
  • Loading branch information
jerader authored Dec 14, 2023
1 parent 5c952b7 commit d15b22e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions protocol-designer/src/step-forms/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ export const getSlotIsEmpty = (

return (
[
...values(initialDeckSetup.modules).filter((moduleOnDeck: ModuleOnDeck) =>
slot.includes(moduleOnDeck.slot)
...values(initialDeckSetup.modules).filter(
(moduleOnDeck: ModuleOnDeck) => moduleOnDeck.slot === slot
),
...values(initialDeckSetup.labware).filter((labware: LabwareOnDeckType) =>
slot.includes(labware.slot)
...values(initialDeckSetup.labware).filter(
(labware: LabwareOnDeckType) => labware.slot === slot
),
...filteredAdditionalEquipmentOnDeck,
].length === 0
Expand Down

0 comments on commit d15b22e

Please sign in to comment.