Skip to content

Commit

Permalink
fix(protocol-designer): disable load liquid save if no liquid selected
Browse files Browse the repository at this point in the history
When loading a liquid into labware wells in LiquidPlacementForm, we need to disable 'Save' if the
volume is 0, null, or '', OR the selected liquid is null or ''.

Closes RQA-2728
  • Loading branch information
ncdiehl11 committed May 20, 2024
1 parent 6090b72 commit 3152422
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,13 @@ export const LiquidPlacementForm = (): JSX.Element | null => {
</OutlineButton>
<DeprecatedPrimaryButton
type="submit"
disabled={volumeErrors != null || volume == null || volume === ''}
disabled={
volumeErrors != null ||
volume == null ||
volume === '' ||
selectedLiquidId == null ||
selectedLiquidId === ''
}
>
{t('button:save')}
</DeprecatedPrimaryButton>
Expand Down

0 comments on commit 3152422

Please sign in to comment.