Skip to content

Commit

Permalink
fix(report): fix budget recap
Browse files Browse the repository at this point in the history
  • Loading branch information
revolunet committed Feb 28, 2024
1 parent f65177a commit 8bf564a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions report/www/pages/summary/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ const summaryConfigs: Record<string, SummaryConfig> = {
title={`Voir la page de stats de l'url ${slugifyUrl(
params.row.url
)}`}
href={params.row.stats.url + "/" + params.row.stats.uri}
href={params.row.betagouv.attributes.stats_url}
target="_blank"
>
{params.row.betagouv.attributes.stats_url}
Expand All @@ -153,7 +153,7 @@ const summaryConfigs: Record<string, SummaryConfig> = {
headerName: `Page de budget`,
width: 400,
valueGetter: (params) =>
(params.row.budget && params.row.budget.grade) || "F",
(params.row.budget_page && params.row.budget_page.grade) || "F",
renderCell: (params) => {
if (params.value === "A") {
return (
Expand All @@ -163,7 +163,7 @@ const summaryConfigs: Record<string, SummaryConfig> = {
title={`Voir la page de budget de l'url ${slugifyUrl(
params.row.url
)}`}
href={params.row.budget.url + "/" + params.row.budget.uri}
href={params.row.betagouv.attributes.budget_url}
target="_blank"
>
/{params.row.betagouv.attributes.budget_url}
Expand Down

0 comments on commit 8bf564a

Please sign in to comment.