From 8bf564af448b308d19daaaf83a16717089ff3706 Mon Sep 17 00:00:00 2001 From: Julien Bouquillon Date: Thu, 29 Feb 2024 00:34:59 +0100 Subject: [PATCH] fix(report): fix budget recap --- report/www/pages/summary/[id].tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/report/www/pages/summary/[id].tsx b/report/www/pages/summary/[id].tsx index 2028dce2..bf8640ac 100644 --- a/report/www/pages/summary/[id].tsx +++ b/report/www/pages/summary/[id].tsx @@ -128,7 +128,7 @@ const summaryConfigs: Record = { 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} @@ -153,7 +153,7 @@ const summaryConfigs: Record = { 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 ( @@ -163,7 +163,7 @@ const summaryConfigs: Record = { 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}