|
|
@ -1334,6 +1334,12 @@ export default async ( |
|
|
|
// retrieve datatype
|
|
|
|
// retrieve datatype
|
|
|
|
const dt = table.columns.find((x) => x.title === key)?.uidt; |
|
|
|
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) { |
|
|
|
switch (dt) { |
|
|
|
// https://www.npmjs.com/package/validator
|
|
|
|
// https://www.npmjs.com/package/validator
|
|
|
|
// default value: digits_after_decimal: [2]
|
|
|
|
// default value: digits_after_decimal: [2]
|
|
|
|