From 0d5e15e765a7fb33d52145ad91bbae556bc87137 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 18 Jan 2024 21:26:07 +0000 Subject: [PATCH] fix: pass proper model id --- packages/nocodb/src/models/Column.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/models/Column.ts b/packages/nocodb/src/models/Column.ts index 9b7ffd464b..efea0d2238 100644 --- a/packages/nocodb/src/models/Column.ts +++ b/packages/nocodb/src/models/Column.ts @@ -1168,7 +1168,7 @@ export default class Column implements ColumnType { // whenever a new request comes for that formula, it will be populated again getFormulasReferredTheColumn({ column: updatedColumn, - columns: await Column.list({ fk_model_id: column.fk_model_id }, ncMeta), + columns: await Column.list({ fk_model_id: oldCol.fk_model_id }, ncMeta), }) .then(async (formulas) => { for (const formula of formulas) {