From 84e02329e654c85ea85c40026574bbf7c060c938 Mon Sep 17 00:00:00 2001 From: Mathieu Suen Date: Wed, 28 Sep 2022 16:53:19 +0200 Subject: [PATCH] SONAR-17390 Fix snippet expansion --- .../ComponentSourceSnippetGroupViewer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} -- 2.39.5