From 99977416357b2d288a02dde5a8f5be3f93fa40df Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 6 Sep 2024 09:12:31 +0000 Subject: [PATCH] fix: xcCodition - handle date object as value and avoid treating it as nested condition --- packages/nocodb/src/db/CustomKnex.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/db/CustomKnex.ts b/packages/nocodb/src/db/CustomKnex.ts index 310962d84e..30421068e9 100644 --- a/packages/nocodb/src/db/CustomKnex.ts +++ b/packages/nocodb/src/db/CustomKnex.ts @@ -657,7 +657,7 @@ const parseCondition = (obj, columnAliases, qb, pKey?) => { }); break; default: - if (val && typeof val === 'object' && !Array.isArray(val)) { + if (val && typeof val === 'object' && !(val instanceof Date) && !Array.isArray(val)) { qb = parseCondition(val, columnAliases, qb, key); } else { const fieldName = columnAliases[pKey] || pKey;