From 476ffd3336b54de1e3954ef341e4be430e21b48c Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 4 Nov 2024 16:16:20 +0100 Subject: [PATCH] Fix enrichment when having AI columns --- packages/server/src/api/controllers/row/staticFormula.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/row/staticFormula.ts b/packages/server/src/api/controllers/row/staticFormula.ts index cce349ff58..28853a8faf 100644 --- a/packages/server/src/api/controllers/row/staticFormula.ts +++ b/packages/server/src/api/controllers/row/staticFormula.ts @@ -160,7 +160,7 @@ export async function finaliseRow( dynamic: false, }) if (aiEnabled) { - enrichedRow = await processAIColumns(table, row, { + enrichedRow = await processAIColumns(table, enrichedRow, { contextRows: [enrichedRow], }) }