From ef4eb3cca2239de5e1d62f1bab0b189cafc4b2cb Mon Sep 17 00:00:00 2001 From: Ciabas Date: Tue, 1 Jul 2025 10:02:18 +0200 Subject: [PATCH] (fix#3142): Fix missing page titles on subpages: DRep details and Gov Actions details --- CHANGELOG.md | 1 + govtool/frontend/src/pages/Dashboard.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 216a7e567..ba69e3a67 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ changes. - Fix blank screen and type error on linkReferences when navigating to edit dRep page that has no links [Issue 3714](https://github.com/IntersectMBO/govtool/issues/3714) - Fix adding two link input fields when editing the dRep form when no links are present initially [Issue 3709](https://github.com/IntersectMBO/govtool/issues/3709) - Fix images in Governance Action Details are displayed at full width and height without cropping or clipping [Issue 3837](https://github.com/IntersectMBO/govtool/issues/3837) +- Fix missing page titles on subpages: DRep details and Gov Actions details [Issue 3142](https://github.com/IntersectMBO/govtool/issues/3142) ### Changed - Adjust top menu (navbar) layout when wallet is not connected [Issue-3682](https://github.com/IntersectMBO/govtool/issues/3682) diff --git a/govtool/frontend/src/pages/Dashboard.tsx b/govtool/frontend/src/pages/Dashboard.tsx index 88648389d..130e6b6fc 100644 --- a/govtool/frontend/src/pages/Dashboard.tsx +++ b/govtool/frontend/src/pages/Dashboard.tsx @@ -60,7 +60,7 @@ export const Dashboard = () => { items.reduce( (result, item) => result ?? - (targetPath === item.navTo + (targetPath === item.navTo || targetPath.startsWith(`${item.navTo}/`) ? item.label : item.childNavItems ? findNavItem(item.childNavItems, targetPath)