From 01d5ff9d18e4a7a56ff3df50afb3967ecf494d1d Mon Sep 17 00:00:00 2001 From: Bartosz Prusinowski Date: Tue, 1 Nov 2022 11:13:29 +0100 Subject: [PATCH] chore: Add feature flag for Time Slider --- .../interactive-filters/interactive-filters-configurator.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/configurator/interactive-filters/interactive-filters-configurator.tsx b/app/configurator/interactive-filters/interactive-filters-configurator.tsx index 6ce761ff9e..593f15333a 100644 --- a/app/configurator/interactive-filters/interactive-filters-configurator.tsx +++ b/app/configurator/interactive-filters/interactive-filters-configurator.tsx @@ -22,6 +22,8 @@ import { useLocale } from "@/locales/use-locale"; import { getTimeSliderFilterDimensions } from "./helpers"; +const ENABLE_TIME_SLIDER = false; + export type InteractiveFilterType = | "legend" | "timeRange" @@ -67,7 +69,8 @@ export const InteractiveFiltersConfigurator = ({ chartConfigOptionsUISpec[chartType].interactiveFilters.includes( "timeRange" ); - const canFilterTimeSlider = timeSliderDimensions.length > 0; + const canFilterTimeSlider = + ENABLE_TIME_SLIDER && timeSliderDimensions.length > 0; const canFilterData = Object.keys(filters).length > 0; return (