From c07185abdbf735b6982b8992de95581d5c46d9b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Rivi=C3=A8re?= Date: Thu, 25 Jun 2026 11:28:18 +0200 Subject: [PATCH] Fix on Positions page the display of press releases files --- frontend/src/app/[locale]/positions/page.tsx | 6 ++++++ frontend/src/app/[locale]/positions/positions.tsx | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/[locale]/positions/page.tsx b/frontend/src/app/[locale]/positions/page.tsx index 90720009..7736fe72 100644 --- a/frontend/src/app/[locale]/positions/page.tsx +++ b/frontend/src/app/[locale]/positions/page.tsx @@ -29,6 +29,9 @@ async function fetchPositionPageData() { }, thumbnail: { populate: '*' + }, + article_file: { + fields: ['url'] } } }, @@ -44,6 +47,9 @@ async function fetchPositionPageData() { }, thumbnail: { populate: '*' + }, + article_file: { + fields: ['url'] } } } diff --git a/frontend/src/app/[locale]/positions/positions.tsx b/frontend/src/app/[locale]/positions/positions.tsx index 6a9c32d5..a300b9f1 100644 --- a/frontend/src/app/[locale]/positions/positions.tsx +++ b/frontend/src/app/[locale]/positions/positions.tsx @@ -44,7 +44,7 @@ function transformResources(resources: NonNullable tag.name) || [] : (resource.press_release as { tags: string[] })?.tags || [], isBlank: true, }