Browse Source

refactor(gui-v2): make idType arg optional

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2857/head
Pranav C 2 years ago
parent
commit
dc52d8ad86
  1. 2
      packages/nocodb-sdk/src/lib/sqlUi/MssqlUi.ts
  2. 2
      packages/nocodb-sdk/src/lib/sqlUi/MysqlUi.ts
  3. 2
      packages/nocodb-sdk/src/lib/sqlUi/PgUi.ts
  4. 2
      packages/nocodb-sdk/src/lib/sqlUi/SqliteUi.ts

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

@ -1189,7 +1189,7 @@ export class MssqlUi {
return colProp; return colProp;
} }
static getDataTypeListForUiType(col, idType: IDType) { static getDataTypeListForUiType(col, idType?: IDType) {
switch (col.uidt) { switch (col.uidt) {
case 'ID': case 'ID':
if (idType === 'AG') { if (idType === 'AG') {

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

@ -1081,7 +1081,7 @@ export class MysqlUi {
return colProp; return colProp;
} }
static getDataTypeListForUiType(col, idType: IDType) { static getDataTypeListForUiType(col, idType?: IDType) {
switch (col.uidt) { switch (col.uidt) {
case 'ID': case 'ID':
if (idType === 'AG') { if (idType === 'AG') {

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

@ -1705,7 +1705,7 @@ export class PgUi {
return colProp; return colProp;
} }
static getDataTypeListForUiType(col: { uidt: UITypes }, idType: IDType) { static getDataTypeListForUiType(col: { uidt?: UITypes }, idType: IDType) {
switch (col.uidt) { switch (col.uidt) {
case 'ID': case 'ID':
if (idType === 'AG') { if (idType === 'AG') {

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

@ -898,7 +898,7 @@ export class SqliteUi {
return colProp; return colProp;
} }
static getDataTypeListForUiType(col: { uidt: UITypes }, idType: IDType) { static getDataTypeListForUiType(col: { uidt: UITypes }, idType?: IDType) {
switch (col.uidt) { switch (col.uidt) {
case 'ID': case 'ID':
if (idType === 'AG') { if (idType === 'AG') {

Loading…
Cancel
Save