Skip to content

Commit

Permalink
fix: suppress metric from filter URLs (#15002)
Browse files Browse the repository at this point in the history
fix: suppress `metric` from filter URLs
  • Loading branch information
artsy-peril[bot] authored Dec 17, 2024
2 parents bfdc630 + 656b3c5 commit ce82e30
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 116 deletions.
3 changes: 1 addition & 2 deletions src/Components/ArtworkFilter/Utils/isDefaultFilter.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { DEFAULT_METRIC } from "Utils/metrics"
import { ArtworkFilters } from "Components/ArtworkFilter/ArtworkFilterTypes"

export const isDefaultFilter: (
Expand Down Expand Up @@ -40,7 +39,7 @@ export const isDefaultFilter: (
case name === "page":
return value === 1
case name === "metric":
return value === DEFAULT_METRIC
return true // We don't want to include `metric` in the URL.
default:
return !value
}
Expand Down
19 changes: 0 additions & 19 deletions src/System/Utils/fetchUserPreferences.ts

This file was deleted.

95 changes: 0 additions & 95 deletions src/__generated__/fetchUserPreferencesQuery.graphql.ts

This file was deleted.

0 comments on commit ce82e30

Please sign in to comment.