Skip to content

Commit efb9c1b

Browse files
committed
fix: domain filter -- no longer use deprecated superkingdom
1 parent f342fc3 commit efb9c1b

File tree

1 file changed

+7
-5
lines changed
  • app/components/Home/components/Section/components/SectionViz

1 file changed

+7
-5
lines changed

app/components/Home/components/Section/components/SectionViz/NodeDetails.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,19 @@ function createFilterUrl(rank?: string, name?: string): string | null {
5151
return null;
5252
}
5353

54+
/* eslint-disable sort-keys -- Keep these in natural order of hierarchy */
5455
// Convert rank to the expected format for the filter
5556
const rankMap: Record<string, string> = {
56-
class: "taxonomicLevelClass",
57-
family: "taxonomicLevelFamily",
57+
species: "taxonomicLevelSpecies",
5858
genus: "taxonomicLevelGenus",
59-
kingdom: "taxonomicLevelKingdom",
59+
family: "taxonomicLevelFamily",
6060
order: "taxonomicLevelOrder",
61+
class: "taxonomicLevelClass",
6162
phylum: "taxonomicLevelPhylum",
62-
species: "taxonomicLevelSpecies",
63-
superkingdom: "taxonomicLevelSuperkingdom",
63+
kingdom: "taxonomicLevelKingdom",
64+
domain: "taxonomicLevelDomain",
6465
};
66+
/* eslint-enable sort-keys -- re-enable sort keys */
6567

6668
const categoryKey = rankMap[rank.toLowerCase()] || "taxonomicLevelGenus";
6769

0 commit comments

Comments
 (0)