Skip to content

Commit

Permalink
ignore case in recent queries table
Browse files Browse the repository at this point in the history
  • Loading branch information
JEK58 committed Nov 13, 2024
1 parent 86e5c1e commit e2ec3d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/RecentQueriesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ const RecentQueriesTable = async () => {
const uniqueQueries = recentQueries
.filter(
(item, index, self) =>
index === self.findIndex((i) => i.compTitle === item.compTitle),
index ===
self.findIndex(
(i) => i.compTitle?.toLowerCase() === item.compTitle?.toLowerCase(),
),
)
.slice(0, 30);

Expand Down

0 comments on commit e2ec3d0

Please sign in to comment.