Skip to content

Commit

Permalink
fix(autofix): Show autofix even if resources are available (#81089)
Browse files Browse the repository at this point in the history
Removes an unnecessary check that hid Autofix inside the drawer on
errors that contained special resources.
  • Loading branch information
roaga authored Nov 20, 2024
1 parent c9aea9e commit 65fcca9
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ import type {Group} from 'sentry/types/group';
import type {Organization} from 'sentry/types/organization';
import type {Project} from 'sentry/types/project';
import {getShortEventId} from 'sentry/utils/events';
import {
getConfigForIssueType,
shouldShowCustomErrorResourceConfig,
} from 'sentry/utils/issueTypeConfig';
import {getConfigForIssueType} from 'sentry/utils/issueTypeConfig';
import {getRegionDataFromOrganization} from 'sentry/utils/regions';
import useRouteAnalyticsParams from 'sentry/utils/routeAnalytics/useRouteAnalyticsParams';
import useOrganization from 'sentry/utils/useOrganization';
Expand Down Expand Up @@ -169,7 +166,6 @@ export function SolutionsHubDrawer({group, project, event}: SolutionsHubDrawerPr
const displayAiAutofix =
shouldDisplayAiAutofixForOrganization(organization) &&
config.autofix &&
!shouldShowCustomErrorResourceConfig(group, project) &&
hasStacktraceWithFrames(event) &&
!isSampleError;

Expand Down

0 comments on commit 65fcca9

Please sign in to comment.