diff --git a/frontend/src/app/routes/profile/datasets.tsx b/frontend/src/app/routes/profile/datasets.tsx index 6bde7dbf5..aa4a69730 100644 --- a/frontend/src/app/routes/profile/datasets.tsx +++ b/frontend/src/app/routes/profile/datasets.tsx @@ -9,7 +9,7 @@ export const UserProfileDatasetsPage = () => ( -
+
( -
+
{ showDashboardLink, isMapRequestResult, } = useNavbarState(); + const resultMatch = useMatch(APPLICATION_ROUTES.MAP_REQUEST_RESULT); + const initialPrediction = ( + location.state as { prediction?: TOfflinePrediction } | null + )?.prediction; + const { data: prediction } = useGetSinglePrediction( + resultMatch?.params.id, + isMapRequestResult ? initialPrediction : undefined, + ); + const resultTitle = prediction?.description || "Map Request Result"; const isTryFairPage = location.pathname.includes(APPLICATION_ROUTES.TRY_FAIR); const isProfilePage = location.pathname.includes( @@ -100,19 +111,40 @@ export const NavBar = () => {