Fix allowed types
This commit is contained in:
parent
3b34f3f5f8
commit
8314685033
|
@ -63,7 +63,6 @@
|
||||||
let savingColumn
|
let savingColumn
|
||||||
let deleteColName
|
let deleteColName
|
||||||
let jsonSchemaModal
|
let jsonSchemaModal
|
||||||
let allowedTypes = []
|
|
||||||
let editableColumn = {
|
let editableColumn = {
|
||||||
type: FIELDS.STRING.type,
|
type: FIELDS.STRING.type,
|
||||||
constraints: FIELDS.STRING.constraints,
|
constraints: FIELDS.STRING.constraints,
|
||||||
|
@ -171,6 +170,11 @@
|
||||||
SWITCHABLE_TYPES[field.type] &&
|
SWITCHABLE_TYPES[field.type] &&
|
||||||
!editableColumn?.autocolumn)
|
!editableColumn?.autocolumn)
|
||||||
|
|
||||||
|
$: allowedTypes = getAllowedTypes(datasource).map(t => ({
|
||||||
|
fieldId: makeFieldId(t.type, t.subtype),
|
||||||
|
...t,
|
||||||
|
}))
|
||||||
|
|
||||||
const fieldDefinitions = Object.values(FIELDS).reduce(
|
const fieldDefinitions = Object.values(FIELDS).reduce(
|
||||||
// Storing the fields by complex field id
|
// Storing the fields by complex field id
|
||||||
(acc, field) => ({
|
(acc, field) => ({
|
||||||
|
@ -225,11 +229,6 @@
|
||||||
editableColumn.subtype,
|
editableColumn.subtype,
|
||||||
editableColumn.autocolumn
|
editableColumn.autocolumn
|
||||||
)
|
)
|
||||||
|
|
||||||
allowedTypes = getAllowedTypes(datasource).map(t => ({
|
|
||||||
fieldId: makeFieldId(t.type, t.subtype),
|
|
||||||
...t,
|
|
||||||
}))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue