-
{climb.name}
+
+ {isLeftRoute ?
:
}
+
+
{climb.name}
{gradeStr}
-
+
)
}
diff --git a/src/components/edit/RecentChangeHistory.tsx b/src/components/edit/RecentChangeHistory.tsx
index 9dc0ffdfd..17725a9b8 100644
--- a/src/components/edit/RecentChangeHistory.tsx
+++ b/src/components/edit/RecentChangeHistory.tsx
@@ -6,7 +6,7 @@ import { formatDistanceToNowStrict } from 'date-fns'
import clx from 'classnames'
import { ChangesetType, ChangeType, AreaType, ClimbType, OrganizationType, DocumentTypeName } from '../../js/types'
-import { getAreaPageFriendlyUrl } from '@/js/utils'
+import { getAreaPageFriendlyUrl, getClimbPageFriendlyUrl } from '@/js/utils'
export interface RecentChangeHistoryProps {
history: ChangesetType[]
@@ -93,6 +93,9 @@ const ClimbChange = ({ changeId, fullDocument, updateDescription, dbOp }: Change
if (fullDocument.__typename !== DocumentTypeName.Climb) {
return null
}
+
+ const climbName = (fullDocument as ClimbType).name
+ const climbPageUrl = getClimbPageFriendlyUrl((fullDocument as ClimbType).id, climbName)
// @ts-expect-error
const icon = dbOpIcon[dbOp]
return (
@@ -105,9 +108,10 @@ const ClimbChange = ({ changeId, fullDocument, updateDescription, dbOp }: Change
?
{(fullDocument as ClimbType).name}
: (
{(fullDocument as ClimbType).name}
+ >
+ {climbName}
)}