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