diff --git a/app/configurator/components/field.tsx b/app/configurator/components/field.tsx index 09c9ee11c..682fd0fcb 100644 --- a/app/configurator/components/field.tsx +++ b/app/configurator/components/field.tsx @@ -80,6 +80,7 @@ import { HierarchyValue, ObservationValue, TemporalDimension, + isTemporalOrdinalDimension, } from "@/domain/data"; import { useTimeFormatLocale } from "@/formatters"; import { TimeUnit } from "@/graphql/query-hooks"; @@ -240,11 +241,56 @@ export const DataFilterSelect = ({ ); } + const canUseMostRecentValue = isTemporalOrdinalDimension(dimension); + const usesMostRecentValue = isDynamicMaxValue(fieldProps.value); + const maxValue = sortedValues[sortedValues.length - 1].value; + return (