Skip to content

Commit a01d131

Browse files
authored
Merge pull request #277 from FlowiseAI/bugfix/PromptSchema
Bugfix/Invalid Prompt Schema
2 parents cc2bcde + 4da8457 commit a01d131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/src/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export const getInputVariables = (paramValue: string): string[] => {
132132
const variableStack = []
133133
const inputVariables = []
134134
let startIdx = 0
135-
const endIdx = returnVal.length - 1
135+
const endIdx = returnVal.length
136136

137137
while (startIdx < endIdx) {
138138
const substr = returnVal.substring(startIdx, startIdx + 1)

0 commit comments

Comments
 (0)