Browse Source

fix(nocodb): remove unused view_id

pull/5222/head
Wing-Kam Wong 2 years ago
parent
commit
112fefa0e9
  1. 11
      packages/nocodb/src/lib/services/viewColumnService.ts

11
packages/nocodb/src/lib/services/viewColumnService.ts

@ -11,16 +11,15 @@ export async function columnAdd(param: {
columnId: string;
column: ViewColumnReqType;
}) {
validatePayload('swagger.json#/components/schemas/ViewColumnReq', param.column);
validatePayload(
'swagger.json#/components/schemas/ViewColumnReq',
param.column
);
const viewColumn = await View.insertOrUpdateColumn(
param.viewId,
param.columnId,
{
...param.column,
view_id: param.viewId,
}
param.column
);
T.emit('evt', { evt_type: 'viewColumn:inserted' });

Loading…
Cancel
Save