From 65fcca934b0604fe65149f12ec648c030b71b6e0 Mon Sep 17 00:00:00 2001 From: Rohan Agarwal <47861399+roaga@users.noreply.github.com> Date: Wed, 20 Nov 2024 15:20:50 -0800 Subject: [PATCH] fix(autofix): Show autofix even if resources are available (#81089) Removes an unnecessary check that hid Autofix inside the drawer on errors that contained special resources. --- .../views/issueDetails/streamline/solutionsHubDrawer.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/static/app/views/issueDetails/streamline/solutionsHubDrawer.tsx b/static/app/views/issueDetails/streamline/solutionsHubDrawer.tsx index 5f1820d249f286..8f45becd1c58d7 100644 --- a/static/app/views/issueDetails/streamline/solutionsHubDrawer.tsx +++ b/static/app/views/issueDetails/streamline/solutionsHubDrawer.tsx @@ -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'; @@ -169,7 +166,6 @@ export function SolutionsHubDrawer({group, project, event}: SolutionsHubDrawerPr const displayAiAutofix = shouldDisplayAiAutofixForOrganization(organization) && config.autofix && - !shouldShowCustomErrorResourceConfig(group, project) && hasStacktraceWithFrames(event) && !isSampleError;