Linting
This commit is contained in:
parent
56a1b068cc
commit
a1fdff8df8
|
@ -70,18 +70,18 @@ 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 {
|
||||||
result = JSON.parse(attachments)
|
result = JSON.parse(attachments)
|
||||||
} 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,
|
||||||
|
|
Loading…
Reference in New Issue