Skip to content

Commit

Permalink
fix(protocol-designer): display correct z-value position in tip posit… (
Browse files Browse the repository at this point in the history
#17005)

…ion field

closes RQA-3723
  • Loading branch information
jerader authored Dec 2, 2024
1 parent 2b4eecb commit 36c3208
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,13 @@ export function PositionField(props: PositionFieldProps): JSX.Element {
zValue =
mmFromBottom ?? getDefaultMmFromBottom({ name: zName, wellDepthMm })
}

let modal = (
<ZTipPositionModal
name={zName}
closeModal={handleClose}
wellDepthMm={wellDepthMm}
zValue={mmFromBottom}
zValue={zValue as number}
updateValue={zUpdateValue}
isIndeterminate={isIndeterminate}
/>
Expand All @@ -133,7 +134,7 @@ export function PositionField(props: PositionFieldProps): JSX.Element {
const specs: PositionSpecs = {
z: {
name: zName,
value: mmFromBottom,
value: zValue as number,
updateValue: zUpdateValue,
},
x: {
Expand Down Expand Up @@ -198,7 +199,7 @@ export function PositionField(props: PositionFieldProps): JSX.Element {
propsForFields[yField].value != null
? Number(propsForFields[yField].value)
: 0,
z: mmFromBottom ?? 0,
z: zValue,
})}
</StyledText>
</ListButton>
Expand Down

0 comments on commit 36c3208

Please sign in to comment.