Use formula correctly

This commit is contained in:
Adria Navarro 2025-04-01 17:07:17 +02:00
parent b6ec0c3856
commit 2259e9d132
1 changed files with 6 additions and 0 deletions

View File

@ -84,6 +84,12 @@ export async function generateTables(
} }
field.tableId = linkedTable.id field.tableId = linkedTable.id
} }
for (const field of table.structure.schema.filter(
f => f.type === FieldType.FORMULA
)) {
field.formula = `{{ js "${btoa(field.formula)}" }}`
}
} }
for (const { structure: table } of Object.values(response.tables)) { for (const { structure: table } of Object.values(response.tables)) {