1
0
Fork 0
mirror of synced 2024-08-08 06:37:55 +12:00

Fix for #9790 - formulas never exist in the database and so were always being considered deleted, handling this.

This commit is contained in:
mike12345567 2023-03-07 15:29:58 +00:00
parent a946b8e399
commit 0342d409c3

View file

@ -223,14 +223,15 @@ function shouldCopySpecialColumn(
column: { type: string },
fetchedColumn: { type: string } | undefined
) {
const isFormula = column.type === FieldTypes.FORMULA
const specialTypes = [
FieldTypes.OPTIONS,
FieldTypes.LONGFORM,
FieldTypes.ARRAY,
FieldTypes.FORMULA,
]
// column has been deleted, remove
if (column && !fetchedColumn) {
// column has been deleted, remove - formulas will never exist, always copy
if (!isFormula && column && !fetchedColumn) {
return false
}
const fetchedIsNumber =