From 10765dd52e9173fee3f50b48de911297d513cd74 Mon Sep 17 00:00:00 2001 From: Mathieu Suen Date: Thu, 2 Jun 2022 12:14:31 +0200 Subject: [PATCH] SONAR-16456 Remove expand button on non file header --- .../ComponentSourceSnippetGroupViewer.tsx | 3 ++- 1 file changed, 2 insertions(+), 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 2fe03336c70..00a82856a42 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 @@ -26,6 +26,7 @@ import { locationsByLine } from '../../../components/SourceViewer/helpers/indexi import SourceViewerHeaderSlim from '../../../components/SourceViewer/SourceViewerHeaderSlim'; import { getBranchLikeQuery } from '../../../helpers/branch-like'; import { BranchLike } from '../../../types/branch-like'; +import { isFile } from '../../../types/component'; import { Dict, Duplication, @@ -423,7 +424,7 @@ export default class ComponentSourceSnippetGroupViewer extends React.PureCompone