From b790a1177e73764b69c2798e308deae668f908a2 Mon Sep 17 00:00:00 2001 From: melohagan <101575380+melohagan@users.noreply.github.com> Date: Fri, 5 May 2023 07:50:01 +0100 Subject: [PATCH] Don't validate empty options picker (#10302) --- packages/server/src/api/controllers/row/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server/src/api/controllers/row/utils.ts b/packages/server/src/api/controllers/row/utils.ts index a7c467ea61..f6a87dd24c 100644 --- a/packages/server/src/api/controllers/row/utils.ts +++ b/packages/server/src/api/controllers/row/utils.ts @@ -69,9 +69,9 @@ export async function validate({ if (type === FieldTypes.FORMULA || column.autocolumn) { continue } - // special case for options, need to always allow unselected (null) + // special case for options, need to always allow unselected (empty) if (type === FieldTypes.OPTIONS && constraints.inclusion) { - constraints.inclusion.push(null) + constraints.inclusion.push(null, "") } let res