2
0

fix: 🐛 Display file URL in CSV export

This commit is contained in:
Baptiste Arnaud
2022-06-16 11:12:51 +02:00
parent 0dd607bcdf
commit 6f4267e7e2
4 changed files with 46 additions and 10 deletions

View File

@ -6,6 +6,7 @@ import { ResultHeaderCell } from 'models'
import React, { useEffect, useMemo, useRef } from 'react'
import { Hooks, useRowSelect, useTable } from 'react-table'
import { parseSubmissionsColumns } from 'services/typebots'
import { isNotDefined } from 'utils'
import { LoadingRows } from './LoadingRows'
type SubmissionsTableProps = {
@ -130,7 +131,9 @@ export const SubmissionsTable = ({
}
{...cell.getCellProps()}
>
{cell.render('Cell')}
{isNotDefined(cell.value)
? cell.render('Cell')
: cell.value.element ?? cell.value.plainText}
</chakra.td>
)
})}