Browse Source

fix: corrections and linting

pull/6894/head
Pranav C 11 months 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;
}
export function withoutId<T>(obj: T): Omit<T, 'id'> {
export function withoutId(obj: any): any {
const { id, ...rest } = obj;
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,
},
}),
}) as any,
req: param.req,
user: param.user,
});
@ -883,6 +883,7 @@ export class ImportService {
viewData,
table.views,
param.user,
param.req,
);
if (!vw) continue;
@ -1072,7 +1073,7 @@ export class ImportService {
const gview = await this.gridsService.gridViewCreate({
tableId: md.id,
grid: vw as ViewCreateReqType,
req: param.req,
req,
});
const gridData = withoutNull(vw.view);
if (gridData) {

Loading…
Cancel
Save