Skip to content

Commit

Permalink
Sort device categories
Browse files Browse the repository at this point in the history
  • Loading branch information
jcardus authored Dec 3, 2024
1 parent e83e67b commit 53ff76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/settings/DevicePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const DevicePage = () => {
data={deviceCategories.map((category) => ({
id: category,
name: t(`category${category.replace(/^\w/, (c) => c.toUpperCase())}`),
}))}
})).filter(a => a.name).sort((a, b) => a.name.localeCompare(b.name))}

Check failure on line 122 in src/settings/DevicePage.jsx

View workflow job for this annotation

GitHub Actions / build

Expected parentheses around arrow function argument
label={t('deviceCategory')}
/>
<SelectField
Expand Down

0 comments on commit 53ff76f

Please sign in to comment.