diff --git a/src/app/portfolio/[slug]/(portfolio)/reporting/ReportingClientArea.tsx b/src/app/portfolio/[slug]/(portfolio)/reporting/ReportingClientArea.tsx index 75ba4f3..c0ec45a 100644 --- a/src/app/portfolio/[slug]/(portfolio)/reporting/ReportingClientArea.tsx +++ b/src/app/portfolio/[slug]/(portfolio)/reporting/ReportingClientArea.tsx @@ -46,10 +46,7 @@ async function fetchScenarioReport({ hideNonCompliant: String(hideNonCompliant), }); - const path = - scenarioId === "default" - ? `/api/portfolio/${portfolioId}/scenario/default/metrics` - : `/api/portfolio/${portfolioId}/scenario/${scenarioId}/metrics`; + const path = `/api/portfolio/${portfolioId}/scenario/${scenarioId}/metrics`; const res = await fetch(`${path}?${params.toString()}`); @@ -67,10 +64,7 @@ async function fetchScenarioMeasures({ portfolioId: number; scenarioId: number | "default"; }) { - const path = - scenarioId === "default" - ? `/api/portfolio/${portfolioId}/scenario/default/measures` - : `/api/portfolio/${portfolioId}/scenario/${scenarioId}/measures`; + const path = `/api/portfolio/${portfolioId}/scenario/${scenarioId}/measures`; const res = await fetch(path);