Browse Source

fix: if condition correction

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5613/head
Pranav C 2 years ago
parent
commit
cbc311e44f
  1. 2
      packages/nocodb/src/db/sql-client/lib/KnexClient.ts

2
packages/nocodb/src/db/sql-client/lib/KnexClient.ts

@ -2976,7 +2976,7 @@ class KnexClient extends SqlClient {
if (value === 'true' || value === 'true') return 'true';
// if value is a number, return as is
if (/^\d+(\.\d+)?$/) return value;
if (/^\d+(\.\d+)?$/.test(value)) return value;
// if value is a function, return as is
if (/^\w+\(\)$/.test(value)) return value;

Loading…
Cancel
Save