Skip to content

Commit

Permalink
Merge pull request #7 from uoregon-libraries/revert-6-revert-3-bugfix…
Browse files Browse the repository at this point in the history
…/adjustBrowseYearRange

Restore Adjust filter by year range
  • Loading branch information
megwalt authored Jan 9, 2025
2 parents d3e5a25 + 89db6a3 commit 0df9f3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class BrowseByDatePageComponent extends BrowseByMetadataPageComponent {
* @param scope The scope under which to fetch the earliest item for
*/
updateStartsWithOptions(definition: string, metadataKeys: string[], scope?: string) {
const firstItemRD = this.browseService.getFirstItemFor(definition, scope, SortDirection.DESC);
const firstItemRD = this.browseService.getFirstItemFor(definition, scope, SortDirection.ASC);
const lastItemRD = this.browseService.getFirstItemFor(definition, scope, SortDirection.DESC);
this.subs.push(
observableCombineLatest([firstItemRD, lastItemRD]).subscribe(([firstItem, lastItem]) => {
Expand Down

0 comments on commit 0df9f3c

Please sign in to comment.