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

Loading…
Cancel
Save