Skip to content

Commit

Permalink
Merge branch 'master' into i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlgo11 authored Dec 19, 2024
2 parents daaeca4 + 2806918 commit b103415
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 @@ -25,7 +25,7 @@ function Table({Category, 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

// Scroll to category button
Expand Down

0 comments on commit b103415

Please sign in to comment.