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:
@ -36,7 +36,7 @@ export const generateCsv: GenerateExport = ({
|
|||||||
}: GenerateExportOptions): string => {
|
}: GenerateExportOptions): string => {
|
||||||
const columnsToExport = columns.filter(
|
const columnsToExport = columns.filter(
|
||||||
(col) =>
|
(col) =>
|
||||||
!('relationType' in col.metadata) ||
|
!('relationType' in col.metadata && col.metadata.relationType) ||
|
||||||
col.metadata.relationType === 'TO_ONE_OBJECT',
|
col.metadata.relationType === 'TO_ONE_OBJECT',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user