Skip to content

Commit

Permalink
Fix export with relations (twentyhq#5279)
Browse files Browse the repository at this point in the history
As title. Only relations are exported right now

Co-authored-by: Thomas Trompette <thomast@twenty.com>
  • Loading branch information
thomtrp and Thomas Trompette committed May 3, 2024
1 parent 1d9cd23 commit 5285a42
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const generateCsv: GenerateExport = ({
}: GenerateExportOptions): string => {
const columnsToExport = columns.filter(
(col) =>
!('relationType' in col.metadata) ||
!('relationType' in col.metadata && col.metadata.relationType) ||
col.metadata.relationType === 'TO_ONE_OBJECT',
);

Expand Down

0 comments on commit 5285a42

Please sign in to comment.