diff --git a/src/components/DataTable/SWRDataTable/index.tsx b/src/components/DataTable/SWRDataTable/index.tsx index a0bffc8..1d7322a 100644 --- a/src/components/DataTable/SWRDataTable/index.tsx +++ b/src/components/DataTable/SWRDataTable/index.tsx @@ -115,14 +115,19 @@ export const renderDataTableCell = ({ filters, column, row, selectedRows }) => { case "actions": return ; case "image": - if (!row.getValue("image")?.url) return null; - return ( - {row.getValue("name")} - ); + // eslint-disable-next-line no-case-declarations + const image = row.getValue("image") || value; + if (image?.url) { + return ( + {image.alt_text} + ); + } + return
{value}
; + case "link": // eslint-disable-next-line no-case-declarations const url = row.getValue("details_url");