1
0
Fork 0
mirror of synced 2024-06-30 03:50:37 +12:00

Fix switching types

This commit is contained in:
Adria Navarro 2024-04-17 16:13:46 +02:00
parent b3ff97df7b
commit f7a1b4cb12

View file

@ -170,7 +170,7 @@
$: typeEnabled =
!originalName ||
(originalName &&
SWITCHABLE_TYPES[editableColumn.type] &&
SWITCHABLE_TYPES[field.type] &&
!editableColumn?.autocolumn)
const fieldDefinitions = Object.values(FIELDS).reduce(
@ -363,9 +363,9 @@
function getAllowedTypes() {
if (originalName) {
return (
SWITCHABLE_TYPES[editableColumn.type] || [editableColumn.type]
).map(f => FIELDS[f.toUpperCase()])
return (SWITCHABLE_TYPES[field.type] || [editableColumn.type]).map(
f => FIELDS[f.toUpperCase()]
)
}
const isUsers =