We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f342fc3 commit efb9c1bCopy full SHA for efb9c1b
app/components/Home/components/Section/components/SectionViz/NodeDetails.tsx
@@ -51,17 +51,19 @@ function createFilterUrl(rank?: string, name?: string): string | null {
51
return null;
52
}
53
54
+ /* eslint-disable sort-keys -- Keep these in natural order of hierarchy */
55
// Convert rank to the expected format for the filter
56
const rankMap: Record<string, string> = {
- class: "taxonomicLevelClass",
57
- family: "taxonomicLevelFamily",
+ species: "taxonomicLevelSpecies",
58
genus: "taxonomicLevelGenus",
59
- kingdom: "taxonomicLevelKingdom",
+ family: "taxonomicLevelFamily",
60
order: "taxonomicLevelOrder",
61
+ class: "taxonomicLevelClass",
62
phylum: "taxonomicLevelPhylum",
- species: "taxonomicLevelSpecies",
63
- superkingdom: "taxonomicLevelSuperkingdom",
+ kingdom: "taxonomicLevelKingdom",
64
+ domain: "taxonomicLevelDomain",
65
};
66
+ /* eslint-enable sort-keys -- re-enable sort keys */
67
68
const categoryKey = rankMap[rank.toLowerCase()] || "taxonomicLevelGenus";
69
0 commit comments