Skip to content

Commit

Permalink
Merge branch 'corel' into corel-versioned-docs-action-type
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanl17 authored Oct 24, 2024
2 parents d4a8d82 + f6d421b commit 207cdaf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/sanity/src/core/releases/navbar/ReleasesNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {ReleaseAvatar} from '../components/ReleaseAvatar'
import {usePerspective} from '../hooks/usePerspective'
import {RELEASES_INTENT, RELEASES_TOOL_NAME} from '../plugin'
import {LATEST} from '../util/const'
import {getBundleIdFromReleaseId} from '../util/getBundleIdFromReleaseId'
import {getReleaseTone} from '../util/getReleaseTone'
import {GlobalPerspectiveMenu} from './GlobalPerspectiveMenu'

Expand Down Expand Up @@ -63,7 +64,11 @@ export function ReleasesNav(): JSX.Element {
}

const releasesIntentLink = ({children, ...intentProps}: PropsWithChildren) => (
<IntentLink {...intentProps} intent={RELEASES_INTENT} params={{id: currentGlobalBundle._id}}>
<IntentLink
{...intentProps}
intent={RELEASES_INTENT}
params={{id: getBundleIdFromReleaseId(currentGlobalBundle._id)}}
>
{children}
</IntentLink>
)
Expand Down

0 comments on commit 207cdaf

Please sign in to comment.