mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: hard redirect when id not available
This commit is contained in:
parent
c40aeec355
commit
968a030941
1 changed files with 3 additions and 3 deletions
|
|
@ -112,9 +112,9 @@ export const GitHub: Platform = {
|
|||
path: item.filename || '',
|
||||
type: 'blob',
|
||||
name: item.filename?.replace(/^.*\//, '') || '',
|
||||
url: id
|
||||
? `https://${window.location.host}/${metaData.userName}/${metaData.repoName}/pull/${pullId}/files${window.location.search}#${id}`
|
||||
: `#`,
|
||||
url: `https://${window.location.host}/${metaData.userName}/${
|
||||
metaData.repoName
|
||||
}/pull/${pullId}/files${window.location.search}#${id || ''}`,
|
||||
contents: undefined,
|
||||
sha: item.sha,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue