Skip to content

Commit 8b9c361

Browse files
committed
console2: handle procesess with commitId, but without repoUrl
1 parent 201e601 commit 8b9c361

File tree

1 file changed

+3
-3
lines changed
  • console2/src/components/molecules/ProcessStatusTable

1 file changed

+3
-3
lines changed

console2/src/components/molecules/ProcessStatusTable/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ const kindToDescription = (k: ProcessKind): string => {
4848

4949
class ProcessStatusTable extends React.PureComponent<Props> {
5050
static renderCommitId(process?: ProcessEntry) {
51-
if (!process || !process.commitId) {
51+
if (!process || !process.commitId || !process.repoUrl) {
5252
return ' - ';
5353
}
5454

5555
return (
5656
<GitHubLink
57-
url={process.repoUrl!}
57+
url={process.repoUrl}
5858
commitId={process.commitId}
5959
text={process.commitId}
6060
/>
@@ -217,7 +217,7 @@ class ProcessStatusTable extends React.PureComponent<Props> {
217217
}
218218

219219
static renderRepoPath(process?: ProcessEntry) {
220-
if (!process || !process.commitId) {
220+
if (!process || !process.commitId || !process.repoUrl) {
221221
return '-';
222222
}
223223

0 commit comments

Comments
 (0)