@@ -29,7 +29,6 @@ import {Query} from '@parca/parser';
2929import { TEST_IDS , testId } from '@parca/test-utils' ;
3030import { millisToProtoTimestamp , type NavigateFunction } from '@parca/utilities' ;
3131
32- import { useMetricsGraphDimensions } from '../MetricsGraph/useMetricsGraphDimensions' ;
3332import {
3433 ProfileFilter ,
3534 useProfileFilters ,
@@ -118,7 +117,6 @@ const ProfileSelector = ({
118117 suffix,
119118 onSearchHook,
120119} : ProfileSelectorProps ) : JSX . Element => {
121- const { heightStyle} = useMetricsGraphDimensions ( comparing , false ) ;
122120 const { viewComponent, additionalMetricsGraph} = useParcaContext ( ) ;
123121 const [ queryBrowserMode , setQueryBrowserMode ] = useURLState ( 'query_browser_mode' ) ;
124122 const batchUpdates = useURLStateBatch ( ) ;
@@ -298,6 +296,13 @@ const ProfileSelector = ({
298296 timeRange : timeRangeSelection ,
299297 onTimeRangeChange : handleTimeRangeChange ,
300298 commitTimeRange : ( ) => setQueryExpression ( true ) ,
299+ selectTimeRange : ( range : DateTimeRange ) => {
300+ commitDraft ( {
301+ from : range . getFromMs ( ) ,
302+ to : range . getToMs ( ) ,
303+ timeSelection : range . getRangeKey ( ) ,
304+ } ) ;
305+ } ,
301306 } ) }
302307 < LabelsQueryProvider
303308 setMatchersString = { setMatchersString }
@@ -356,7 +361,6 @@ const ProfileSelector = ({
356361 < MetricsGraphSection
357362 showMetricsGraph = { showMetricsGraph }
358363 setDisplayHideMetricsGraphButton = { setDisplayHideMetricsGraphButton }
359- heightStyle = { heightStyle }
360364 querySelection = { querySelection }
361365 profileSelection = { profileSelection }
362366 comparing = { comparing }
0 commit comments