Browse Source

fix: handle if meta is not defined/null

pull/9772/head
Pranav C 3 weeks ago
parent
commit
f9dab2a343
  1. 2
      packages/nocodb/src/db/sql-client/lib/pg/PgClient.ts

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

@ -3029,7 +3029,7 @@ class PGClient extends KnexClient {
n.dt, n.dt,
castedColumn, castedColumn,
limit, limit,
n.meta.date_format || 'YYYY-MM-DD', n.meta?.date_format || 'YYYY-MM-DD',
); );
query += this.genQuery(castQuery, [], shouldSanitize); query += this.genQuery(castQuery, [], shouldSanitize);

Loading…
Cancel
Save