aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/component-measures/routes.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/component-measures/routes.tsx')
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/routes.tsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/apps/component-measures/routes.tsx b/server/sonar-web/src/main/js/apps/component-measures/routes.tsx
index 04e9d573fb4..6b838d4f2c0 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/routes.tsx
+++ b/server/sonar-web/src/main/js/apps/component-measures/routes.tsx
@@ -32,9 +32,9 @@ const routes = () => (
element={
<NavigateWithParams
pathname="/component_measures"
- transformParams={params =>
+ transformParams={(params) =>
omitNil({
- metric: params['domainName']
+ metric: params['domainName'],
})
}
/>
@@ -57,9 +57,9 @@ function MetricRedirect() {
omitNil({
id: searchParams.get('id') ?? undefined,
graph: 'custom',
- custom_metrics: params.metricKey
+ custom_metrics: params.metricKey,
})
- ).toString()
+ ).toString(),
};
return <Navigate to={to} replace={true} />;
}
@@ -69,9 +69,9 @@ function MetricRedirect() {
omitNil({
...searchParamsToQuery(searchParams),
metric: params.metricKey,
- view: params.view
+ view: params.view,
})
- ).toString()
+ ).toString(),
};
return <Navigate to={to} replace={true} />;
}