Skip to content

Commit

Permalink
fix: Non-optional accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Feb 23, 2024
1 parent f3b037b commit 4625eab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/configurator/components/field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ export const DataFilterSelect = ({

const canUseMostRecentValue = isTemporalOrdinalDimension(dimension);
const usesMostRecentValue = isDynamicMaxValue(fieldProps.value);
const maxValue = sortedValues[sortedValues.length - 1].value;
// Dimension values can be empty just before a filter is reloaded through
// ensurePossibleFilters
const maxValue = sortedValues[sortedValues.length - 1]?.value;

return (
<Select
Expand Down

0 comments on commit 4625eab

Please sign in to comment.