From 82cee029623ae5e134359be45ea5f47fe3c5dcb9 Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Sun, 4 May 2025 21:46:30 -0500 Subject: [PATCH] Updated never if no date. --- frontend/src/components/tables/EPGsTable.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/tables/EPGsTable.jsx b/frontend/src/components/tables/EPGsTable.jsx index 38173e36..848c1666 100644 --- a/frontend/src/components/tables/EPGsTable.jsx +++ b/frontend/src/components/tables/EPGsTable.jsx @@ -201,10 +201,14 @@ const EPGsTable = () => { }, { header: 'Updated', - accessorFn: (row) => dayjs(row.updated_at).format('MMMM D, YYYY h:mma'), + accessorKey: 'updated_at', size: 180, minSize: 100, enableSorting: false, + Cell: ({ cell }) => { + const value = cell.getValue(); + return value ? dayjs(value).format('MMMM D, YYYY h:mma') : 'Never'; + }, }, { header: 'Active',