Browse Source

fix(ai-suggestions): Fix react query pii logic (#63645)

Fix the PII logic in the react query disable/enable options
Jenn Mueng 1 year ago
parent
commit
9b61b8103b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      static/app/components/events/aiSuggestedSolution/suggestion.tsx

+ 1 - 1
static/app/components/events/aiSuggestedSolution/suggestion.tsx

@@ -123,7 +123,7 @@ export function Suggestion({onHideSuggestion, projectSlug, event}: Props) {
       },
     ],
     {
-      enabled: false,
+      enabled: isStaff ? (piiCertified ? true : false) : true,
       staleTime: Infinity,
       retry: false,
     }