From 80b9bc017cda9ead3ca0e3ad5c4aeb3a2b1407c0 Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Thu, 27 Feb 2020 13:34:56 +0100 Subject: [PATCH] SONAR-12977 Use snippet view for issues with a single secondary location --- .../src/main/js/apps/issues/components/IssuesSourceViewer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { ? selectedLocation && { index: selectedLocationIndex, text: selectedLocation.msg } : undefined; - if (locations.length > 1) { + if (locations.length > 0) { const components = uniq(locations.map(l => l.component)); return (
(this.node = node)}> -- 2.39.5