Skip to content

Commit 557a483

Browse files
authored
Apply suggestions from code review
1 parent 91b9c52 commit 557a483

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/backend.ai-ui/src/hooks/useGetAvailableFolderName.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const useGetAvailableFolderName = () => {
3232
.catch(() => 0);
3333

3434
const hash = generateRandomString(5);
35-
console.log(targetName, count);
35+
3636
return count === 0 ? targetName : `${targetName.substring(0, 58)}_${hash}`;
3737
};
3838
};

react/src/components/ImportRepoForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ const ImportRepoForm: React.FC<ImportFromURLFormProps> = ({
267267
{ type: 'string', max: 2048 },
268268
{
269269
pattern:
270-
urlType === 'github'
270+
urlType === 'github' ? t('import.GitHubURL') : t('import.GitlabURL')
271271
? /^(https?):\/\/github\.com\/([\w./-]{1,})$/
272272
: /^(https?):\/\/gitlab\.com\/([\w./-]{1,})$/,
273273
message: t('import.WrongURLType'),

0 commit comments

Comments
 (0)