T
TanStack2y ago
quickest-silver

[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
quickest-silver
quickest-silverOP2y ago
and the time objects are the same as well
No description
quickest-silver
quickest-silverOP2y 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?