Skip to content

Commit

Permalink
fix: label is null, cause an error
Browse files Browse the repository at this point in the history
Signed-off-by: neil <[email protected]>
  • Loading branch information
nanzm committed May 15, 2023
1 parent 8868169 commit 39ac6da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/utils/format.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const formatRepoName = ({
showProvider: boolean;
};
} => {
if (label.indexOf('https://') != -1) {
if (label && label.indexOf('https://') != -1) {
const repoName = getRepoName(label);
const namespace = getNameSpace(label);
const provider = getProvider(label);
Expand Down

1 comment on commit 39ac6da

@vercel
Copy link

@vercel vercel bot commented on 39ac6da May 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.