mirror of
https://github.com/harness/drone.git
synced 2025-05-14 16:09:59 +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 history = useHistory()
|
||||||
const _isDir = isDir(resourceContent)
|
const _isDir = isDir(resourceContent)
|
||||||
const space = useGetSpaceParam()
|
const space = useGetSpaceParam()
|
||||||
const repoPath = compact([repoMetadata.uid, resourceContent.path])
|
const repoPath = compact([repoMetadata.uid, resourceContent?.path])
|
||||||
useDocumentTitle(isEmpty(resourceContent.path) ? getString('pageTitle.repository') : repoPath.join('/'))
|
useDocumentTitle(isEmpty(resourceContent?.path) ? getString('pageTitle.repository') : repoPath.join('/'))
|
||||||
|
|
||||||
const permPushResult = hooks?.usePermissionTranslate?.(
|
const permPushResult = hooks?.usePermissionTranslate?.(
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user