Skip to content

Commit

Permalink
Make last 2 years default
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Dec 27, 2022
1 parent 3f6104f commit ff765e2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/config/facets.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,9 @@ const facets = [
dateRangeFacet({
field: 'issued.date',
label: ' ',
isFilter: true, // filters don't need facet options to show up
showInFacetsList: false,
activeFilterLabel: 'Published',
isFilter: false, // filters don't need facet options to show up
showInFacetsList: true,
showInSecondaryFacetsList: true,
// rangeType: 'dateRange',
isMulti: false,
Expand All @@ -234,7 +235,7 @@ const facets = [
],
factory: 'DropdownRangeFilter',
default: {
values: ['All time'],
values: ['Last 2 years'],
type: 'any',
},
}),
Expand Down

0 comments on commit ff765e2

Please sign in to comment.