Skip to content

Commit

Permalink
fix(protocol-designer): fix presaved absorbance reader step form type (
Browse files Browse the repository at this point in the history
…#17444)

Properly preselect absorbance reader form type based on the module state
at the creation of that form. The bug here arose from using the initial
robot state to determine module state rather than the current robot
state.

Closes RQA-3943
  • Loading branch information
ncdiehl11 authored Feb 6, 2025
1 parent 6c89f59 commit cea40c2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,10 @@ const _patchAbsorbanceReaderModuleId = (args: {
)?.length ?? 1
const hasAbsorbanceReaderModuleId = stepType === 'absorbanceReader'

const { modules } = initialDeckSetup
const robotState: RobotState | null =
last(robotStateTimeline.timeline)?.robotState ?? null

const modules = robotState?.modules ?? {}
const labware = robotState?.labware ?? {}

// pre-select form type if module is set
Expand Down

0 comments on commit cea40c2

Please sign in to comment.