Browse Source

fix: select options at-import

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/7076/head
mertmit 1 year ago
parent
commit
4226899533
  1. 4
      packages/nocodb/src/modules/jobs/jobs/at-import/at-import.processor.ts

4
packages/nocodb/src/modules/jobs/jobs/at-import/at-import.processor.ts

@ -453,6 +453,10 @@ export class AtImportProcessor {
const options = []; const options = [];
let order = 1; let order = 1;
for (const [, value] of Object.entries(col.typeOptions.choices)) { for (const [, value] of Object.entries(col.typeOptions.choices)) {
// max length of option is 255 chars
// truncate to 255 chars if character if exceeds above 255
(value as any).name = (value as any).name?.slice(0, 255);
// replace commas with dot for multiselect // replace commas with dot for multiselect
if (col.type === 'multiSelect') { if (col.type === 'multiSelect') {
(value as any).name = (value as any).name.replace(/,/g, '.'); (value as any).name = (value as any).name.replace(/,/g, '.');

Loading…
Cancel
Save