mirror of
https://github.com/harness/drone.git
synced 2025-05-12 06:59:54 +08:00
fix: [CODE-1514]: fix for runtime error if switching between branches (#1080)
This commit is contained in:
parent
43841ea523
commit
2d991b4d61
@ -46,8 +46,8 @@ export function ContentHeader({
|
||||
const history = useHistory()
|
||||
const _isDir = isDir(resourceContent)
|
||||
const space = useGetSpaceParam()
|
||||
const repoPath = compact([repoMetadata.uid, resourceContent.path])
|
||||
useDocumentTitle(isEmpty(resourceContent.path) ? getString('pageTitle.repository') : repoPath.join('/'))
|
||||
const repoPath = compact([repoMetadata.uid, resourceContent?.path])
|
||||
useDocumentTitle(isEmpty(resourceContent?.path) ? getString('pageTitle.repository') : repoPath.join('/'))
|
||||
|
||||
const permPushResult = hooks?.usePermissionTranslate?.(
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user