Skip to content

Commit

Permalink
Artist page: Sort types according to typeOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
MonkeyDo committed Oct 11, 2024
1 parent b73730f commit 53a9f69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/js/src/artist/ArtistPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ export default function ArtistPage(): JSX.Element {
"Broadcast",
"Other",
];
const sortedRgGroupsKeys = sortBy(Object.keys(rgGroups), [
(type) => typeOrder.indexOf(type),
"type",
]);
const last = Object.keys(rgGroups).length;
const sortedRgGroupsKeys = sortBy(Object.keys(rgGroups), (type) =>
typeOrder.indexOf(type) !== -1 ? typeOrder.indexOf(type) : last
);

const groupedReleaseGroups: Record<
string,
Expand Down

0 comments on commit 53a9f69

Please sign in to comment.