Browse Source

fix: corrections and linting

pull/6894/head
Pranav C 1 year ago
parent
commit
5c7d3b629a
  1. 2
      packages/nocodb/src/helpers/exportImportHelpers.ts
  2. 5
      packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts

2
packages/nocodb/src/helpers/exportImportHelpers.ts

@ -46,7 +46,7 @@ export function reverseGet(map: Map<string, string>, vl: string) {
return undefined; return undefined;
} }
export function withoutId<T>(obj: T): Omit<T, 'id'> { export function withoutId(obj: any): any {
const { id, ...rest } = obj; const { id, ...rest } = obj;
return rest; return rest;
} }

5
packages/nocodb/src/modules/jobs/jobs/export-import/import.service.ts

@ -846,7 +846,7 @@ export class ImportService {
...{ ...{
formula_raw: colOptions.formula_raw, formula_raw: colOptions.formula_raw,
}, },
}), }) as any,
req: param.req, req: param.req,
user: param.user, user: param.user,
}); });
@ -883,6 +883,7 @@ export class ImportService {
viewData, viewData,
table.views, table.views,
param.user, param.user,
param.req,
); );
if (!vw) continue; if (!vw) continue;
@ -1072,7 +1073,7 @@ export class ImportService {
const gview = await this.gridsService.gridViewCreate({ const gview = await this.gridsService.gridViewCreate({
tableId: md.id, tableId: md.id,
grid: vw as ViewCreateReqType, grid: vw as ViewCreateReqType,
req: param.req, req,
}); });
const gridData = withoutNull(vw.view); const gridData = withoutNull(vw.view);
if (gridData) { if (gridData) {

Loading…
Cancel
Save