From 4da845745c5eeb516b1606faf27ccc7b15dfbe39 Mon Sep 17 00:00:00 2001 From: Henry Date: Fri, 9 Jun 2023 14:35:14 +0100 Subject: [PATCH] added fix to get input variables from prompt --- packages/components/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/utils.ts b/packages/components/src/utils.ts index 210ca649d79..de026a359bb 100644 --- a/packages/components/src/utils.ts +++ b/packages/components/src/utils.ts @@ -132,7 +132,7 @@ export const getInputVariables = (paramValue: string): string[] => { const variableStack = [] const inputVariables = [] let startIdx = 0 - const endIdx = returnVal.length - 1 + const endIdx = returnVal.length while (startIdx < endIdx) { const substr = returnVal.substring(startIdx, startIdx + 1)