Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[fix] adjust time range filter on value set (#2823)
Igor Dykhtabb6a376e80e0
diff --git a/src/reducers/src/vis-state-updaters.ts b/src/reducers/src/vis-state-updaters.tsindex acf48cfd5..c8648e128 100644--- a/src/reducers/src/vis-state-updaters.ts+++ b/src/reducers/src/vis-state-updaters.ts@@ -966,8 +966,7 @@ export function setFilterAnimationTimeUpdater(state: VisState,action: VisStateActions.SetFilterAnimationTimeUpdaterAction): VisState {- const newState = setFilterUpdater(state, action);- return adjustAnimationConfigWithFilter(newState, action.idx);+ return setFilterUpdater(state, action);}/**@@ -1078,6 +1077,11 @@ export function setFilterUpdater<S extends VisState>(// pass only the dataset we need to updatenewState = updateAllLayerDomainData(newState, datasetIdsToFilter, newFilter);+ // If time range filter value was updated, adjust animation config+ if (newFilter.type === FILTER_TYPES.timeRange && props.includes('value')) {+ newState = adjustAnimationConfigWithFilter(newState, action.idx);+ }+return newState;}