diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/utils.ts')
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/utils.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/utils.ts b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/utils.ts index d41b61cbe0d..7476c471fb1 100644 --- a/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/utils.ts +++ b/server/sonar-web/src/main/js/apps/issues/crossComponentSourceViewer/utils.ts @@ -181,6 +181,10 @@ export function groupLocationsByComponent( currentGroup.locations.push(loc); }); + if (groups.length === 0) { + groups.push({ locations: [], ...components[issue.component] }); + } + return groups; } |