Skip to content

Commit

Permalink
Remove sorting override (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
hkamran80 authored Dec 19, 2024
1 parent 95425dc commit 2806918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function Table({ Category, Title, search, grid }) {
fetch(`${API_URL}/${region || 'int/'}${Category}.json`,
{ cache: 'force-cache' }).
then(res => res.json()).
then(data => setEntries(Object.entries(data).sort() || [])).
then(data => setEntries(Object.entries(data) || [])).
catch(err => console.error('Error fetching categories:', err)); // Add error handling
} else setEntries(search);

Expand Down

0 comments on commit 2806918

Please sign in to comment.