Linting.
This commit is contained in:
parent
2312defd3c
commit
d5f10f5f13
|
@ -181,7 +181,10 @@ module External {
|
||||||
|
|
||||||
function fixArrayTypes(row: Row, table: Table) {
|
function fixArrayTypes(row: Row, table: Table) {
|
||||||
for (let [fieldName, schema] of Object.entries(table.schema)) {
|
for (let [fieldName, schema] of Object.entries(table.schema)) {
|
||||||
if (schema.type === FieldTypes.ARRAY && typeof row[fieldName] === "string") {
|
if (
|
||||||
|
schema.type === FieldTypes.ARRAY &&
|
||||||
|
typeof row[fieldName] === "string"
|
||||||
|
) {
|
||||||
try {
|
try {
|
||||||
row[fieldName] = JSON.parse(row[fieldName])
|
row[fieldName] = JSON.parse(row[fieldName])
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Reference in New Issue