@@ -19,18 +19,18 @@ import {createActionMenuItems} from './buildDetailsActionItems';
1919import { useBuildDetailsActions } from './useBuildDetailsActions' ;
2020
2121function makeReleasesUrl (
22- projectId : string | undefined ,
22+ projectSlug : string | undefined ,
2323 query : { appId ?: string ; version ?: string }
2424) : string {
2525 const { appId, version} = query ;
2626
27- // Not knowing the projectId should be transient.
28- if ( projectId === undefined ) {
27+ // Not knowing the projectSlug should be transient.
28+ if ( projectSlug === undefined ) {
2929 return '#' ;
3030 }
3131
3232 const params = new URLSearchParams ( ) ;
33- params . set ( 'project' , projectId ) ;
33+ params . set ( 'project' , projectSlug ) ;
3434 const parts = [ ] ;
3535 if ( appId ) {
3636 parts . push ( `release.package:${ appId } ` ) ;
@@ -47,16 +47,16 @@ function makeReleasesUrl(
4747interface BuildDetailsHeaderContentProps {
4848 artifactId : string ;
4949 buildDetailsQuery : UseApiQueryResult < BuildDetailsApiResponse , RequestError > ;
50- projectId : string ;
50+ projectSlug : string ;
5151}
5252
5353export function BuildDetailsHeaderContent ( props : BuildDetailsHeaderContentProps ) {
5454 const organization = useOrganization ( ) ;
5555 const isSentryEmployee = useIsSentryEmployee ( ) ;
56- const { buildDetailsQuery, projectId , artifactId} = props ;
56+ const { buildDetailsQuery, projectSlug , artifactId} = props ;
5757 const { isDeletingArtifact, handleDeleteAction, handleDownloadAction} =
5858 useBuildDetailsActions ( {
59- projectId ,
59+ projectSlug ,
6060 artifactId,
6161 } ) ;
6262
@@ -84,7 +84,7 @@ export function BuildDetailsHeaderContent(props: BuildDetailsHeaderContentProps)
8484 ) ;
8585 }
8686
87- const project = ProjectsStore . getBySlug ( projectId ) ;
87+ const project = ProjectsStore . getBySlug ( projectSlug ) ;
8888
8989 const breadcrumbs : Crumb [ ] = [
9090 {
@@ -124,7 +124,7 @@ export function BuildDetailsHeaderContent(props: BuildDetailsHeaderContentProps)
124124 </ Heading >
125125 < Flex align = "center" gap = "sm" flexShrink = { 0 } >
126126 < Link
127- to = { `/organizations/${ organization . slug } /preprod/${ projectId } /compare/${ buildDetailsData . id } /` }
127+ to = { `/organizations/${ organization . slug } /preprod/${ projectSlug } /compare/${ buildDetailsData . id } /` }
128128 >
129129 < Button size = "sm" priority = "default" icon = { < IconTelescope /> } >
130130 { t ( 'Compare Build' ) }
0 commit comments