Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: formula query correction

DarkPhoenix2704ca15dd5150eb
diff --git a/packages/nocodb/src/db/conditionV2.ts b/packages/nocodb/src/db/conditionV2.ts
index 78fd0a9119..f07ad696b3 100644
--- a/packages/nocodb/src/db/conditionV2.ts
+++ b/packages/nocodb/src/db/conditionV2.ts
@@ -1197,7 +1197,7 @@ const parseConditionV2 = async (
(column?.colOptions as any).parsed_tree?.dataType ===
FormulaDataTypes.STRING
) {
- qb = qb.orWhere(field, '');
+ qb = qb.orWhere(customWhereClause || field, '');
}
} else {
qb = qb.whereNull(customWhereClause || field);