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)