Skip to content

Commit

Permalink
refactor(app): replace RobotWorkSpace with BaseDeck in ProtocolSetup …
Browse files Browse the repository at this point in the history
…Liquids (#13918)

* refactor(app): replace RobotWorkSpace with BaseDeck in ProtocolSetup Liquids
  • Loading branch information
koji authored and ncdiehl11 committed Nov 14, 2023
1 parent e4435a1 commit dd14c20
Show file tree
Hide file tree
Showing 6 changed files with 386 additions and 403 deletions.
10 changes: 2 additions & 8 deletions app/src/molecules/DeckThumbnail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,9 @@ export function DeckThumbnail(props: DeckThumbnailProps): JSX.Element | null {
protocolAnalysis.commands
)
const liquids = protocolAnalysis.liquids
const labwareRenderInfo = getLabwareRenderInfo(protocolAnalysis, deckDef)
const protocolModulesInfo = getProtocolModulesInfo(protocolAnalysis, deckDef)

const labwareRenderInfo =
protocolAnalysis != null
? getLabwareRenderInfo(protocolAnalysis, deckDef)
: {}
const protocolModulesInfo =
protocolAnalysis != null
? getProtocolModulesInfo(protocolAnalysis, deckDef)
: []
const attachedProtocolModuleMatches = getAttachedProtocolModuleMatches(
attachedModules,
protocolModulesInfo
Expand Down
1 change: 1 addition & 0 deletions app/src/organisms/Devices/ProtocolRun/ProtocolRunSetup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ export function ProtocolRunSetup({
protocolRunHeaderRef={protocolRunHeaderRef}
robotName={robotName}
runId={runId}
protocolAnalysis={protocolData}
/>
),
description: hasLiquids
Expand Down
Loading

0 comments on commit dd14c20

Please sign in to comment.