From 69ec0bee8db15bca5095c7acdaa24549f2efdf43 Mon Sep 17 00:00:00 2001 From: anfbermudezme Date: Mon, 11 Sep 2023 17:50:41 +0200 Subject: [PATCH] chore: add save value to created in StudentsTable. --- src/features/Students/StudentsTable/columns.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/features/Students/StudentsTable/columns.jsx b/src/features/Students/StudentsTable/columns.jsx index 0f0646a6..9ab396e2 100644 --- a/src/features/Students/StudentsTable/columns.jsx +++ b/src/features/Students/StudentsTable/columns.jsx @@ -32,7 +32,11 @@ const getColumns = props => [ { Header: 'Created', accessor: 'created', - Cell: ({ row }) => new Date(row.values.created).toUTCString(), + Cell: ({ row }) => ( + row.values.created + ? new Date(row.values.created).toUTCString() + : '' + ), }, { Header: 'First Access',