Skip to content

Commit

Permalink
Fix create script
Browse files Browse the repository at this point in the history
  • Loading branch information
spugachev committed Oct 10, 2023
1 parent b9c61f2 commit 96d8dc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/magic-create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ async function processCreateOptions(options: any): Promise<void> {
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(
Expand Down

0 comments on commit 96d8dc3

Please sign in to comment.