Don't show progress when choosing repo

This commit is contained in:
Elena Tanasoiu
2023-04-12 08:43:53 +00:00
parent 919219c084
commit 389d8f04d9
2 changed files with 8 additions and 7 deletions

View File

@@ -119,14 +119,15 @@ export async function promptImportGithubDatabase(
}
export async function askForGitHubRepo(
progress: ProgressCallback,
progress?: ProgressCallback,
suggestedValue?: string,
): Promise<string | undefined> {
progress({
message: "Choose repository",
step: 1,
maxStep: 2,
});
progress &&
progress({
message: "Choose repository",
step: 1,
maxStep: 2,
});
const options: InputBoxOptions = {
title:

View File

@@ -208,7 +208,7 @@ export class SkeletonQueryWizard {
const githubRepoNwo = QUERY_LANGUAGE_TO_DATABASE_REPO[this.language];
const chosenRepo = await databaseFetcher.askForGitHubRepo(
this.progress,
undefined,
githubRepoNwo,
);