From 6d3df8433363e14c9dbd3bf7cec0a27a72f85a00 Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Tue, 18 Jul 2023 18:19:42 +0200 Subject: [PATCH] SONAR-19909 Minor fixes for azure --- .../tutorials/azure-pipelines/commands/ClangGCC.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/server/sonar-web/src/main/js/components/tutorials/azure-pipelines/commands/ClangGCC.tsx b/server/sonar-web/src/main/js/components/tutorials/azure-pipelines/commands/ClangGCC.tsx index 2b84388ef07..c2da7e4147e 100644 --- a/server/sonar-web/src/main/js/components/tutorials/azure-pipelines/commands/ClangGCC.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/azure-pipelines/commands/ClangGCC.tsx @@ -51,7 +51,7 @@ type OsConstant = { export default function ClangGCC(props: ClangGCCProps) { const { projectKey, onStepValidationChange } = props; - const [os, setOs] = React.useState(); + const [os, setOs] = React.useState(OSs.Linux); const host = getHostUrl(); const codeSnippetDownload: OsConstant = { @@ -126,10 +126,7 @@ unzip build-wrapper.zip`, highlightPrefixKeys={codeSnippetDownload[os].highlightScriptKey} highlightKeys={['task', 'inline']} /> - + @@ -159,7 +156,7 @@ unzip build-wrapper.zip`, highlightKeys={['build_wrapper']} /> -- 2.39.5