Skip to content

Commit b18049d

Browse files
committed
edit button text
1 parent 8094fa3 commit b18049d

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

ui/packages/shared/profile/src/ProfileFlameGraph/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const ErrorContent = ({errorMessage}: {errorMessage: string | ReactNode}): JSX.E
7676

7777
const 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

ui/packages/shared/profile/src/hooks/useQueryState.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)