File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
ui/packages/shared/profile/src Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ const ErrorContent = ({errorMessage}: {errorMessage: string | ReactNode}): JSX.E
7676
7777const AutoConfigButton = ( { onClick} : { onClick : ( ) => void } ) : JSX . Element => (
7878 < Button onClick = { onClick } variant = "secondary" className = "my-2" >
79- Auto-configure for Flamechart
79+ Auto-configure for optimal Flame Chart viewing
8080 </ Button >
8181) ;
8282
Original file line number Diff line number Diff line change @@ -270,12 +270,10 @@ export const useQueryState = (options: UseQueryStateOptions = {}): UseQueryState
270270 // Optional refreshedTimeRange parameter allows re-evaluating relative time ranges (e.g., "last 15 minutes")
271271 // to the current moment when the Search button is clicked
272272 // Optional expression parameter allows updating the expression before committing
273- // Optional sumBy parameter allows updating the sumBy before committing
274273 const commitDraft = useCallback (
275274 (
276275 refreshedTimeRange ?: { from : number ; to : number ; timeSelection : string } ,
277- expression ?: string ,
278- sumBy ?: string [ ] | undefined
276+ expression ?: string
279277 ) => {
280278 batchUpdates ( ( ) => {
281279 // Use provided expression or current draft expression
@@ -316,12 +314,8 @@ export const useQueryState = (options: UseQueryStateOptions = {}): UseQueryState
316314 // Parse the final expression to check if it's a delta profile
317315 const finalQuery = Query . parse ( finalExpression ) ;
318316 const isDelta = finalQuery . profileType ( ) . delta ;
319-
320- // Use provided sumBy or fall back to draftSumBy
321- const finalSumBy = sumBy !== undefined ? sumBy : draftSumBy ;
322-
323317 if ( isDelta ) {
324- setSumByParam ( sumByToParam ( finalSumBy ) ) ;
318+ setSumByParam ( sumByToParam ( draftSumBy ) ) ;
325319 } else {
326320 setSumByParam ( DEFAULT_EMPTY_SUM_BY ) ;
327321 }
You can’t perform that action at this time.
0 commit comments