1
0
Fork 0
mirror of synced 2024-07-30 02:26:11 +12:00

Added json parse option for row import attachment values

This commit is contained in:
Dean 2023-05-04 11:52:20 +01:00
parent 2cbae832c4
commit 56a1b068cc

View file

@ -70,6 +70,17 @@ export const TYPE_TRANSFORM_MAP: any = {
"": [],
[null]: [],
[undefined]: undefined,
parse: (attachments) => {
if(typeof attachments === "string"){
let result = attachments
try {
result = JSON.parse(attachments)
} catch (e) {
console.error("Could not parse attachments", e)
}
return result;
}
}
},
[FieldTypes.BOOLEAN]: {
"": null,