From c8248d41e4aab8d58f406db0364706f640273a97 Mon Sep 17 00:00:00 2001 From: David Straub Date: Sat, 6 Jul 2024 16:19:45 +0200 Subject: [PATCH] Ignore text-only dates in slider bounds --- src/util.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/util.js b/src/util.js index b54948e2..46af7417 100644 --- a/src/util.js +++ b/src/util.js @@ -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] }