From 96d8dc316363ee61f6307647869a3a92565228a5 Mon Sep 17 00:00:00 2001 From: Sergey Pugachev Date: Tue, 10 Oct 2023 19:19:22 +0100 Subject: [PATCH] Fix create script --- cli/magic-create.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/magic-create.ts b/cli/magic-create.ts index 09d1b9bcc..36b7ed215 100644 --- a/cli/magic-create.ts +++ b/cli/magic-create.ts @@ -200,7 +200,7 @@ async function processCreateOptions(options: any): Promise { const answers: any = await enquirer.prompt(questions); const kendraExternal = []; let newKendra = answers.enableRag && answers.kendra; - const existingKendraIndices = Array.from(options.kendraExternal); + const existingKendraIndices = Array.from(options.kendraExternal || []); while (newKendra === true) { let existingIndex: any = existingKendraIndices.pop(); console.log(