Added json parse option for row import attachment values
This commit is contained in:
parent
2cbae832c4
commit
56a1b068cc
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue