1
0
Fork 0
mirror of synced 2024-09-09 22:16:26 +12:00

Fix import single user

This commit is contained in:
Adria Navarro 2024-04-25 16:31:15 +02:00
parent 6e4baf7215
commit b3e7080215

View file

@ -148,6 +148,10 @@ export function parse(rows: Rows, schema: TableSchema): Rows {
utils.unreachable(columnSubtype)
}
}
} else if (columnType === FieldType.BB_REFERENCE_SINGLE) {
const parsedValue =
columnData && parseCsvExport<{ _id: string }>(columnData)
parsedRow[columnName] = parsedValue?._id
} else if (
(columnType === FieldType.ATTACHMENTS ||
columnType === FieldType.ATTACHMENT_SINGLE) &&