Skip to content

Commit

Permalink
fix(DiffView): Disable AI button when no selections (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
grafakus authored Nov 5, 2024
1 parent a738694 commit 58e89cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class SceneDiffFlameGraph extends SceneObjectBase<SceneDiffFlameGraphStat
const { data } = model.useSceneDiffFlameGraph();
const sidePanel = useToggleSidePanel();

const isAiButtonDisabled = data.isLoading || data.shouldDisplayInfo || data.noProfileDataAvailable;
const isAiButtonDisabled = data.isLoading || data.hasMissingSelections || data.noProfileDataAvailable;

useEffect(() => {
if (isAiButtonDisabled) {
Expand Down

1 comment on commit 58e89cb

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit test coverage

Lines Statements Branches Functions
Coverage: 12%
12.34% (486/3937) 9.73% (136/1397) 8.88% (111/1249)

Please sign in to comment.