From: Mathieu Suen Date: Wed, 28 Sep 2022 14:53:19 +0000 (+0200) Subject: SONAR-17390 Fix snippet expansion X-Git-Tag: 9.7.0.61563~149 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=84e02329e654c85ea85c40026574bbf7c060c938;p=sonarqube.git SONAR-17390 Fix snippet expansion --- diff --git a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/ComponentSourceSnippetGroupViewer.tsx b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/ComponentSourceSnippetGroupViewer.tsx index aab3d99b77c..9be1aa102cc 100644 --- a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/ComponentSourceSnippetGroupViewer.tsx +++ b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/ComponentSourceSnippetGroupViewer.tsx @@ -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}