From cfe77987c096c25fa0d075583ee32c847c0b7631 Mon Sep 17 00:00:00 2001 From: mertmit Date: Sat, 23 Jul 2022 17:33:33 +0300 Subject: [PATCH] fix: add missing else statement Re #2776 Signed-off-by: mertmit --- packages/nocodb/src/lib/meta/api/columnApis.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/nocodb/src/lib/meta/api/columnApis.ts b/packages/nocodb/src/lib/meta/api/columnApis.ts index 86cb4b90ba..5672b8026a 100644 --- a/packages/nocodb/src/lib/meta/api/columnApis.ts +++ b/packages/nocodb/src/lib/meta/api/columnApis.ts @@ -662,7 +662,7 @@ export async function columnUpdate(req: Request, res: Response) { 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) { }); } else { colBody = getColumnPropsFromUIDT(colBody, base); - const tableUpdateBody = { ...table, tn: table.table_name, @@ -920,7 +919,7 @@ export async function columnUpdate(req: Request, res: Response) { const sqlMgr = await ProjectMgrv2.getSqlMgr({ id: base.project_id }); await sqlMgr.sqlOpPlus(base, 'tableUpdate', tableUpdateBody); - + await Column.update(req.params.columnId, { ...colBody, });