Browse Source

fix: xcCodition - handle date object as value and avoid treating it as nested condition

pull/9441/head
Pranav C 3 months ago
parent
commit
9997741635
  1. 2
      packages/nocodb/src/db/CustomKnex.ts

2
packages/nocodb/src/db/CustomKnex.ts

@ -657,7 +657,7 @@ const parseCondition = (obj, columnAliases, qb, pKey?) => {
}); });
break; break;
default: 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); qb = parseCondition(val, columnAliases, qb, key);
} else { } else {
const fieldName = columnAliases[pKey] || pKey; const fieldName = columnAliases[pKey] || pKey;

Loading…
Cancel
Save