Browse Source

Merge pull request #1986 from nocodb/fix-singleselect

fix: single/multi select options at creation
pull/1998/head
navi 3 years ago committed by GitHub
parent
commit
24c2cf7f4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      packages/nocodb/src/lib/noco/meta/api/columnApis.ts

6
packages/nocodb/src/lib/noco/meta/api/columnApis.ts

@ -493,7 +493,11 @@ export async function columnAdd(req: Request, res: Response<TableType>) {
}> = (await sqlClient.columnList({ tn: table.table_name }))?.data?.list;
const insertedColumnMeta =
columns.find(c => c.cn === colBody.column_name) || {};
columns.find(c => c.cn === colBody.column_name) || {} as any;
if (colBody.uidt === UITypes.SingleSelect || colBody.uidt === UITypes.MultiSelect) {
insertedColumnMeta.dtxp = colBody.dtxp;
}
await Column.insert({
...colBody,

Loading…
Cancel
Save