Skip to content

Commit

Permalink
Merge pull request #5548 from parca-dev/create-view-bug
Browse files Browse the repository at this point in the history
area/ui: Pass the `viewComponent` button to the QueryControls component
  • Loading branch information
yomete authored Feb 27, 2025
2 parents 5c23962 + 797fab5 commit c2c5e21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function QueryControls({
</div>
)}

<div className="w-full flex-1 flex flex-col gap-1" ref={queryBrowserRef}>
<div className="w-full flex-1 flex flex-col gap-1 mt-auto" ref={queryBrowserRef}>
<div className="flex items-center justify-between">
<div className="flex items-center gap-3">
<label className="text-xs">Query</label>
Expand Down Expand Up @@ -133,6 +133,7 @@ export function QueryControls({
</>
)}
</div>
{viewComponent?.createViewComponent}
</div>

{viewComponent?.disableExplorativeQuerying === true &&
Expand Down
1 change: 1 addition & 0 deletions ui/packages/shared/profile/src/ProfileSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ const ProfileSelector = ({
setUserSumBySelection={setUserSumBySelection}
profileType={profileType}
profileTypesError={error}
viewComponent={viewComponent}
/>
{comparing && (
<div>
Expand Down

0 comments on commit c2c5e21

Please sign in to comment.