]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-17390 Fix snippet expansion
authorMathieu Suen <mathieu.suen@sonarsource.com>
Wed, 28 Sep 2022 14:53:19 +0000 (16:53 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 29 Sep 2022 20:03:14 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/ComponentSourceSnippetGroupViewer.tsx

index aab3d99b77ca7968b9e2ab49cd980240efdc6787..9be1aa102cc993fc372e62c555e5adaee1adca9e 100644 (file)
@@ -303,7 +303,7 @@ export default class ComponentSourceSnippetGroupViewer extends React.PureCompone
             handleSymbolClick={this.handleSymbolClick}
             highlightedLocationMessage={this.props.highlightedLocationMessage}
             highlightedSymbols={this.state.highlightedSymbols}
-            index={index}
+            index={snippets[index].index}
             issue={this.props.issue}
             lastSnippetOfLastGroup={lastSnippetGroup && index === snippets.length - 1}
             loadDuplications={this.loadDuplications}