diff --git a/src/app/(default)/components/AreaAndClimb/AreaAndClimbPageActions.tsx b/src/app/(default)/components/AreaAndClimb/AreaAndClimbPageActions.tsx index d746ccbfb..4007c700c 100644 --- a/src/app/(default)/components/AreaAndClimb/AreaAndClimbPageActions.tsx +++ b/src/app/(default)/components/AreaAndClimb/AreaAndClimbPageActions.tsx @@ -16,21 +16,32 @@ export const AreaAndClimbPageActions: React.FC<{ uuid: string, name: string, tar let enableEdit = true let editLabel = 'Edit' let navigateUuid = '' + let targetSlug = '' switch (targetType) { case TagTargetType.area: + targetSlug = 'area' url = `/editArea/${uuid}/general` sharePath = `/area/${uuid}` navigateUuid = uuid break case TagTargetType.climb: + targetSlug = 'climb' url = `/editClimb/${uuid}` sharePath = `/climb/${uuid}` enableEdit = true editLabel = 'Edit' navigateUuid = parentUuid ?? '' } + return (