Browse Source

fix(at-import): escape single quote for select options

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3888/head
mertmit 2 years ago
parent
commit
e37485c788
  1. 2
      packages/nocodb/src/lib/meta/api/sync/helpers/job.ts

2
packages/nocodb/src/lib/meta/api/sync/helpers/job.ts

@ -579,7 +579,7 @@ export default async (
}; };
// if options are empty, configure '' as default option // if options are empty, configure '' as default option
ncCol.dtxp = ncCol.dtxp =
colOptions.data.map((el) => `'${el.title}'`).join(',') || "''"; colOptions.data.map((el) => `'${el.title.replace(/'/gi, "''")}'`).join(',') || "''";
break; break;
case undefined: case undefined:
break; break;

Loading…
Cancel
Save