aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2019-09-19 16:59:23 +0200
committerSonarTech <sonartech@sonarsource.com>2019-09-23 20:21:07 +0200
commit8adaa6faef1a9f78663be3656cf0007903c9c6cb (patch)
tree595977dd713d8c5b3b512353c690d8570d1a66b1 /server
parent42339a34c4beefc564d6ae7d3e36040624027cef (diff)
downloadsonarqube-8adaa6faef1a9f78663be3656cf0007903c9c6cb.tar.gz
sonarqube-8adaa6faef1a9f78663be3656cf0007903c9c6cb.zip
SONAR-12451 Prevent refreshing snippets when entering flow
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/CrossComponentSourceViewerWrapper.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/CrossComponentSourceViewerWrapper.tsx b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/CrossComponentSourceViewerWrapper.tsx
index 41bcaf7335a..b324a014aa3 100644
--- a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/CrossComponentSourceViewerWrapper.tsx
+++ b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/CrossComponentSourceViewerWrapper.tsx
@@ -223,7 +223,7 @@ export default class CrossComponentSourceViewerWrapper extends React.PureCompone
}
return (
<SourceViewerContext.Provider
- key={`${this.props.issue.key}-${this.props.selectedFlowIndex}-${i}`}
+ key={`${this.props.issue.key}-${this.props.selectedFlowIndex || 0}-${i}`}
value={{ branchLike: this.props.branchLike, file: snippetGroup.component }}>
<ComponentSourceSnippetViewer
branchLike={this.props.branchLike}