Browse Source

fix: type correction

pull/9683/head
Pranav C 1 month ago
parent
commit
76b04bb0e5
  1. 6
      packages/nocodb/src/helpers/catchError.ts

6
packages/nocodb/src/helpers/catchError.ts

@ -811,7 +811,7 @@ export class NcError {
.map((idVal) => idVal?.toString?.().replaceAll('_', '\\_'))
.join('___');
} else if (idsArr.length) {
return idsArr[0];
return idsArr[0] as any;
} else {
return 'unknown';
}
@ -820,11 +820,11 @@ export class NcError {
} else {
const idsArr = Object.values(id);
if (idsArr.length > 1) {
idsArr
formatedId = idsArr
.map((idVal) => idVal?.toString?.().replaceAll('_', '\\_'))
.join('___');
} else if (idsArr.length) {
formatedId = idsArr[0];
formatedId = idsArr[0] as any;
} else {
formatedId = 'unknown';
}

Loading…
Cancel
Save