Browse Source

fix: single/multi select options at creation

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/1986/head
mertmit 3 years ago
parent
commit
7311bf8705
  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