This commit is contained in:
Dean 2023-05-04 12:25:30 +01:00
parent 56a1b068cc
commit a1fdff8df8
1 changed files with 4 additions and 4 deletions

View File

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