mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-27 11:03:40 +03:00
Fix export with relations (#5279)
As title. Only relations are exported right now Co-authored-by: Thomas Trompette <thomast@twenty.com>
This commit is contained in:
parent
1d9cd234ea
commit
5285a428d1
@ -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',
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user