Browse Source

refactor(gui-v2): remove extra length from datatype if present

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3435/head
Pranav C 2 years ago
parent
commit
9a70dfe70e
  1. 2
      packages/nocodb-sdk/src/lib/sqlUi/SqliteUi.ts

2
packages/nocodb-sdk/src/lib/sqlUi/SqliteUi.ts

@ -691,7 +691,7 @@ export class SqliteUi {
}
static getAbstractType(col): any {
switch ((col.dt || col.dt).toLowerCase()) {
switch (col.dt?.replace(/\(\d+\)$/).toLowerCase()) {
case 'date':
return 'date';
case 'datetime':

Loading…
Cancel
Save