1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-11-24 08:22:29 +02:00

Fixed the CSV export for created by property (#4348)

Fixes https://github.com/mattermost/focalboard/issues/4134
This commit is contained in:
Rajat Dabade 2022-12-28 12:37:24 +05:30 committed by GitHub
parent 44a79615d8
commit bad0e5b1de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,8 +78,14 @@ class CsvExporter {
const row: string[] = []
row.push(`"${this.encodeText(card.title)}"`)
visibleProperties.forEach((template: IPropertyTemplate) => {
const propertyValue = card.fields.properties[template.id]
let propertyValue = card.fields.properties[template.id]
const property = propsRegistry.get(template.type)
if (property.type === 'createdBy') {
propertyValue = card.createdBy
}
if (property.type === 'updatedBy') {
propertyValue = card.modifiedBy
}
row.push(property.exportValue(propertyValue, card, template, intl))
})
rows.push(row)