diff options
author | Jeremy Davis <jeremy.davis@sonarsource.com> | 2020-02-27 13:34:56 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-02-28 20:04:11 +0000 |
commit | 80b9bc017cda9ead3ca0e3ad5c4aeb3a2b1407c0 (patch) | |
tree | 9c10fc7de88496dd9c71a4b7422fdb1f70610490 /server | |
parent | 98ea3f7b2f39f6c63d3c50e6bc1f9ef1adfbe189 (diff) | |
download | sonarqube-80b9bc017cda9ead3ca0e3ad5c4aeb3a2b1407c0.tar.gz sonarqube-80b9bc017cda9ead3ca0e3ad5c4aeb3a2b1407c0.zip |
SONAR-12977 Use snippet view for issues with a single secondary location
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/components/IssuesSourceViewer.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/components/IssuesSourceViewer.tsx b/server/sonar-web/src/main/js/apps/issues/components/IssuesSourceViewer.tsx index b513352a14b..1036a7d0f08 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/IssuesSourceViewer.tsx +++ b/server/sonar-web/src/main/js/apps/issues/components/IssuesSourceViewer.tsx @@ -90,7 +90,7 @@ export default class IssuesSourceViewer extends React.PureComponent<Props> { ? selectedLocation && { index: selectedLocationIndex, text: selectedLocation.msg } : undefined; - if (locations.length > 1) { + if (locations.length > 0) { const components = uniq(locations.map(l => l.component)); return ( <div ref={node => (this.node = node)}> |