Don't validate empty options picker (#10302)

This commit is contained in:
melohagan 2023-05-05 07:50:01 +01:00 committed by GitHub
parent 303a029184
commit b790a1177e
1 changed files with 2 additions and 2 deletions

View File

@ -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