From 6b780e686505e57b0276cde4a36c11932dca0bc3 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 13 Jan 2025 11:52:15 +0100 Subject: [PATCH] Add comment --- packages/client/src/api/patches.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/client/src/api/patches.ts b/packages/client/src/api/patches.ts index 77061968d7..8f09eb5442 100644 --- a/packages/client/src/api/patches.ts +++ b/packages/client/src/api/patches.ts @@ -91,13 +91,14 @@ export const patchAPI = (API: APIClient) => { return await enrichRows(rows, tableId) } - // Wipe any HBS formulae from table definitions, as these interfere with + // Wipe any HBS formulas from table definitions, as these interfere with // handlebars enrichment const fetchTableDefinition = API.fetchTableDefinition API.fetchTableDefinition = async tableId => { const definition = await fetchTableDefinition(tableId) Object.keys(definition?.schema || {}).forEach(field => { if (definition.schema[field]?.type === "formula") { + // @ts-expect-error TODO check what use case removing that would break delete definition.schema[field].formula } })