Browse Source

fix(similarity): one more spot where we need to check query param (#71464)

one more spot where we need to check query param. confirmed this looks
good in yarn dev-ui
Josh Ferge 9 months ago
parent
commit
469c1413eb

+ 4 - 4
static/app/views/issueDetails/groupSimilarIssues/similarStackTrace/item.tsx

@@ -112,11 +112,11 @@ class Item extends Component<Props, State> {
   };
 
   render() {
-    const {aggregate, scoresByInterface, issue, project} = this.props;
+    const {aggregate, scoresByInterface, issue, project, location} = this.props;
     const {visible, busy} = this.state;
-    const hasSimilarityEmbeddingsFeature = project.features.includes(
-      'similarity-embeddings'
-    );
+    const hasSimilarityEmbeddingsFeature =
+      project.features.includes('similarity-embeddings') ||
+      location.query.similarityEmbeddings === '1';
     const similarInterfaces = hasSimilarityEmbeddingsFeature
       ? ['exception', 'message', 'shouldBeGrouped']
       : ['exception', 'message'];