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