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
Signed-off-by: ibolton336 <[email protected]>
  • Loading branch information
ibolton336 committed Dec 20, 2023
1 parent c458ed0 commit 271a691
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 271a691

Please sign in to comment.