Skip to content

Commit

Permalink
fix newLocation error
Browse files Browse the repository at this point in the history
  • Loading branch information
ncdiehl11 committed Nov 7, 2024
1 parent e5d5f93 commit 7096a1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion protocol-designer/src/steplist/formLevel/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,8 @@ export const newLabwareLocationRequired = (
fields: HydratedFormData
): FormError | null => {
const { newLocation } = fields
return newLocation == null && newLocation.slotName == null
return newLocation == null ||
Object.values(newLocation as Object).every(val => val == null)
? NEW_LABWARE_LOCATION_REQUIRED
: null
}
Expand Down

0 comments on commit 7096a1a

Please sign in to comment.