Browse Source

fix(at-import): skip processing empty rows

Re #4176

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

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

@ -1334,6 +1334,12 @@ export default async (
// retrieve datatype
const dt = table.columns.find((x) => x.title === key)?.uidt;
// always process LTAR, Lookup, and Rollup columns as we delete the key after processing
if (!value && dt !== UITypes.LinkToAnotherRecord && dt !== UITypes.Lookup && dt !== UITypes.Rollup) {
rec[key] = null;
continue;
}
switch (dt) {
// https://www.npmjs.com/package/validator
// default value: digits_after_decimal: [2]

Loading…
Cancel
Save