Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into compliance-history-…
Browse files Browse the repository at this point in the history
…export
  • Loading branch information
wiggin77 committed Jan 2, 2023
2 parents a8baf0c + bad0e5b commit 95d099e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion webapp/src/csvExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 95d099e

Please sign in to comment.