[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.
2 Replies
optimistic-goldOP•17mo ago
and the time objects are the same as well

optimistic-goldOP•17mo ago
fixed with accessorFn:
accessorFn: (row) => {
if (row.EstimatedTimeOfDeparture) {
return format(row.EstimatedTimeOfDeparture, 'dd MMM yy');
} else {
return 'Pending';
}
},