Browse Source

feat(autofix): Use new Flagr flag to gate Autofix UI (#66556)

Malachi Willey 1 year ago
parent
commit
7d261d96b7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      static/app/views/issueDetails/resourcesAndMaybeSolutions.tsx

+ 1 - 0
static/app/views/issueDetails/resourcesAndMaybeSolutions.tsx

@@ -28,6 +28,7 @@ export function ResourcesAndMaybeSolutions({event, project, group}: Props) {
   // NOTE:  Autofix is for INTERNAL testing only for now.
   const displayAiAutofix =
     project.features.includes('ai-autofix') &&
+    organization.features.includes('issue-details-autofix-ui') &&
     !shouldShowCustomErrorResourceConfig(group, project);
   const displayAiSuggestedSolution =
     // Skip showing AI suggested solution if the issue has a custom resource