Skip to content

Commit

Permalink
🐛 Ensure a tag category rank of 0 is the lowest value when sorting (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolton336 authored Dec 20, 2023
1 parent c458ed0 commit da3c1bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/app/pages/controls/tags/tags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ export const Tags: React.FC = () => {
const getSortValues = (item: TagCategory) => [
"",
item?.name || "",
item?.rank || "",
typeof item?.rank === "number" ? item.rank : Number.MAX_VALUE,

"",
item?.tags?.length || 0,
"", // Action column
Expand Down

0 comments on commit da3c1bf

Please sign in to comment.