Fix import single user

This commit is contained in:
Adria Navarro 2024-04-25 16:31:15 +02:00
parent 6e4baf7215
commit b3e7080215
1 changed files with 4 additions and 0 deletions

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) &&