diff --git a/pkg/ui/workspaces/cluster-ui/src/timeScaleDropdown/timeScaleDropdown.tsx b/pkg/ui/workspaces/cluster-ui/src/timeScaleDropdown/timeScaleDropdown.tsx index a5272d4b513e..2f4b78ffec51 100644 --- a/pkg/ui/workspaces/cluster-ui/src/timeScaleDropdown/timeScaleDropdown.tsx +++ b/pkg/ui/workspaces/cluster-ui/src/timeScaleDropdown/timeScaleDropdown.tsx @@ -266,6 +266,9 @@ export const getValidOption = ( currentScale: TimeScale, options: TimeScaleOptions, ): TimeScale => { + if (currentScale.key === "Custom") { + return currentScale; + } if (!(currentScale.key in options)) { const firstValidKey = Object.keys(options)[0]; return {