This commit is contained in:
mike12345567 2025-03-14 11:16:22 +00:00
parent b3108cd731
commit 4d76b88495
1 changed files with 10 additions and 6 deletions

View File

@ -212,12 +212,16 @@
(originalName && (originalName &&
SWITCHABLE_TYPES[field.type] && SWITCHABLE_TYPES[field.type] &&
!editableColumn?.autocolumn) !editableColumn?.autocolumn)
$: orderedAllowedTypes = fixedTypeOrder.filter(ordered => $: orderedAllowedTypes = fixedTypeOrder
getAllowedTypes(datasource, table).find(allowed => allowed.type === ordered.type) .filter(ordered =>
).map(t => ({ getAllowedTypes(datasource, table).find(
fieldId: makeFieldId(t.type, t.subtype), allowed => allowed.type === ordered.type
...t, )
})) )
.map(t => ({
fieldId: makeFieldId(t.type, t.subtype),
...t,
}))
$: defaultValueBindings = [ $: defaultValueBindings = [
{ {
type: "context", type: "context",