Fix initial references
This commit is contained in:
parent
c00443d0ad
commit
d0197730d5
|
@ -46,7 +46,7 @@
|
||||||
const DATE_TYPE = FIELDS.DATETIME.type
|
const DATE_TYPE = FIELDS.DATETIME.type
|
||||||
const BB_REFERENCE_TYPE = FieldType.BB_REFERENCE
|
const BB_REFERENCE_TYPE = FieldType.BB_REFERENCE
|
||||||
const BB_USER_REFERENCE_TYPE = composeType(
|
const BB_USER_REFERENCE_TYPE = composeType(
|
||||||
FieldType.BB_REFERENCE,
|
BB_REFERENCE_TYPE,
|
||||||
FieldSubtype.USER
|
FieldSubtype.USER
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -107,8 +107,6 @@
|
||||||
{}
|
{}
|
||||||
)
|
)
|
||||||
|
|
||||||
$: isBBReference = !!bbRefTypeMapping[editableColumn.type]
|
|
||||||
|
|
||||||
$: if (primaryDisplay) {
|
$: if (primaryDisplay) {
|
||||||
editableColumn.constraints.presence = { allowEmpty: false }
|
editableColumn.constraints.presence = { allowEmpty: false }
|
||||||
}
|
}
|
||||||
|
@ -153,6 +151,8 @@
|
||||||
|
|
||||||
$: initialiseField(field, savingColumn)
|
$: initialiseField(field, savingColumn)
|
||||||
|
|
||||||
|
$: isBBReference = !!bbRefTypeMapping[editableColumn.type]
|
||||||
|
|
||||||
$: checkConstraints(editableColumn)
|
$: checkConstraints(editableColumn)
|
||||||
$: required = !!editableColumn?.constraints?.presence || primaryDisplay
|
$: required = !!editableColumn?.constraints?.presence || primaryDisplay
|
||||||
$: uneditable =
|
$: uneditable =
|
||||||
|
|
Loading…
Reference in New Issue