Fix initial references

This commit is contained in:
Adria Navarro 2023-09-18 11:42:41 +02:00
parent c00443d0ad
commit d0197730d5
1 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@
const DATE_TYPE = FIELDS.DATETIME.type
const BB_REFERENCE_TYPE = FieldType.BB_REFERENCE
const BB_USER_REFERENCE_TYPE = composeType(
FieldType.BB_REFERENCE,
BB_REFERENCE_TYPE,
FieldSubtype.USER
)
@ -107,8 +107,6 @@
{}
)
$: isBBReference = !!bbRefTypeMapping[editableColumn.type]
$: if (primaryDisplay) {
editableColumn.constraints.presence = { allowEmpty: false }
}
@ -153,6 +151,8 @@
$: initialiseField(field, savingColumn)
$: isBBReference = !!bbRefTypeMapping[editableColumn.type]
$: checkConstraints(editableColumn)
$: required = !!editableColumn?.constraints?.presence || primaryDisplay
$: uneditable =