Fix invalid
This commit is contained in:
parent
cd1a7699b2
commit
e8e4f064a5
|
@ -96,6 +96,7 @@ export function validate(
|
|||
return
|
||||
} else if (
|
||||
[FieldType.STRING].includes(columnType) &&
|
||||
!columnData &&
|
||||
helpers.schema.isRequired(constraints)
|
||||
) {
|
||||
results.schemaValidation[columnName] = false
|
||||
|
@ -215,6 +216,7 @@ function isValidBBReference(
|
|||
subtype: BBReferenceFieldSubType,
|
||||
isRequired: boolean
|
||||
): boolean {
|
||||
try {
|
||||
if (type === FieldType.BB_REFERENCE_SINGLE) {
|
||||
if (!data) {
|
||||
return !isRequired
|
||||
|
@ -239,6 +241,9 @@ function isValidBBReference(
|
|||
default:
|
||||
throw utils.unreachable(subtype)
|
||||
}
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
function parseJsonExport<T>(value: any) {
|
||||
|
|
Loading…
Reference in New Issue