From 6b5be828e751d21fb5f51990b47d90e1cfd73abb Mon Sep 17 00:00:00 2001 From: Mel O'Hagan Date: Thu, 7 Apr 2022 17:13:08 +0100 Subject: [PATCH] passing non-null required for doesContainStrings --- packages/server/src/api/controllers/table/bulkFormula.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/table/bulkFormula.js b/packages/server/src/api/controllers/table/bulkFormula.js index 27f62415c9..d736c126f2 100644 --- a/packages/server/src/api/controllers/table/bulkFormula.js +++ b/packages/server/src/api/controllers/table/bulkFormula.js @@ -25,7 +25,7 @@ function getFormulaThatUseColumn(table, columnNames) { if (!isStaticFormula(column)) { continue } - if (!doesContainStrings(column.formula, columnNames)) { + if (!doesContainStrings(column?.formula ?? "", columnNames)) { continue } formula.push(column.name)