Skip to content

Commit

Permalink
Bugfix: could not unset hrank or lrank w/o triggering API error
Browse files Browse the repository at this point in the history
  • Loading branch information
kueda committed Mar 21, 2024
1 parent e4b1e1b commit 04b67fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/providers/ExploreContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export enum SORT_BY {
// TODO: this should be imported from a central point, e.g. Taxon realm model
// TODO: this is probably against conventioins to make it in lower case but I (Johannes) don't want to have to add another object somewhere else to map them to the values the API accepts
export enum TAXONOMIC_RANK {
none = "none",
none = null,
kingdom = "kingdom",
phylum = "phylum",
subphylum = "subphylum",
Expand Down Expand Up @@ -155,8 +155,8 @@ type State = {
researchGrade: boolean,
needsID: boolean,
casual: boolean,
hrank: TAXONOMIC_RANK | undefined,
lrank: TAXONOMIC_RANK | undefined,
hrank: TAXONOMIC_RANK | undefined | null,
lrank: TAXONOMIC_RANK | undefined | null,
dateObserved: DATE_OBSERVED,
observed_on: string | null | undefined,
d1: string | null | undefined,
Expand Down Expand Up @@ -211,8 +211,8 @@ const calculatedFilters = {
researchGrade: true,
needsID: true,
casual: false,
hrank: undefined,
lrank: undefined,
hrank: null,
lrank: null,
dateObserved: DATE_OBSERVED.ALL,
dateUploaded: DATE_UPLOADED.ALL,
media: MEDIA.ALL,
Expand Down

0 comments on commit 04b67fe

Please sign in to comment.