From 7096a1a223179c0947ef7deff9be42d8e948fb95 Mon Sep 17 00:00:00 2001 From: ncdiehl11 Date: Thu, 7 Nov 2024 13:40:58 -0500 Subject: [PATCH] fix newLocation error --- protocol-designer/src/steplist/formLevel/errors.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocol-designer/src/steplist/formLevel/errors.ts b/protocol-designer/src/steplist/formLevel/errors.ts index 407d908ad72..add7662903a 100644 --- a/protocol-designer/src/steplist/formLevel/errors.ts +++ b/protocol-designer/src/steplist/formLevel/errors.ts @@ -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 }