T
TanStack17mo ago
optimistic-gold

[SOLVED] getFacetedUniqueValues() not working for date objects?

Hi, here is my code: const uniqueValues = table .getColumn('EstimatedTimeOfDeparture') ?.getFacetedUniqueValues(); I provided a screenshot of the result. Shouldn't I just get two values? Am I doing something wrong? Thanks.
No description
2 Replies
optimistic-gold
optimistic-goldOP17mo ago
and the time objects are the same as well
No description
optimistic-gold
optimistic-goldOP17mo ago
fixed with accessorFn: accessorFn: (row) => { if (row.EstimatedTimeOfDeparture) { return format(row.EstimatedTimeOfDeparture, 'dd MMM yy'); } else { return 'Pending'; } },

Did you find this page helpful?