Browse Source

fix: add missing else statement

Re #2776

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/2751/head
mertmit 2 years ago
parent
commit
cfe77987c0
  1. 5
      packages/nocodb/src/lib/meta/api/columnApis.ts

5
packages/nocodb/src/lib/meta/api/columnApis.ts

@ -662,7 +662,7 @@ export async function columnUpdate(req: Request, res: Response<TableType>) {
NcError.notImplemented(
`Updating ${colBody.uidt} => ${colBody.uidt} is not implemented`
);
} if(
} else if(
[
UITypes.SingleSelect,
UITypes.MultiSelect
@ -866,7 +866,6 @@ export async function columnUpdate(req: Request, res: Response<TableType>) {
});
} else {
colBody = getColumnPropsFromUIDT(colBody, base);
const tableUpdateBody = {
...table,
tn: table.table_name,
@ -920,7 +919,7 @@ export async function columnUpdate(req: Request, res: Response<TableType>) {
const sqlMgr = await ProjectMgrv2.getSqlMgr({ id: base.project_id });
await sqlMgr.sqlOpPlus(base, 'tableUpdate', tableUpdateBody);
await Column.update(req.params.columnId, {
...colBody,
});

Loading…
Cancel
Save