Skip to content

Commit

Permalink
Ignore text-only dates in slider bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMStraub committed Jul 6, 2024
1 parent 4de9418 commit c8248d4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,12 @@ export function filterByDate(map, dateP) {
}

export function getGregorianYears(date) {
if (date === undefined || dateIsEmpty(date)) {
const MOD_TEXTONLY = 6
if (
date === undefined ||
dateIsEmpty(date) ||
date.modifier === MOD_TEXTONLY
) {
return [undefined, undefined]
}

Expand Down

0 comments on commit c8248d4

Please sign in to comment.