mirror of https://github.com/FlowiseAI/Flowise.git
Bug fix - ChatBot Share - CURL with i/p config (#2672)
parent
83ecc88b35
commit
aec9e7a3b7
|
|
@ -693,7 +693,7 @@ export const getConfigExamplesForCurl = (configData, bodyType, isMultiple, stopN
|
||||||
const loop = Math.min(configData.length, 4)
|
const loop = Math.min(configData.length, 4)
|
||||||
for (let i = 0; i < loop; i += 1) {
|
for (let i = 0; i < loop; i += 1) {
|
||||||
const config = configData[i]
|
const config = configData[i]
|
||||||
let exampleVal = `example`
|
let exampleVal = `"example"`
|
||||||
if (config.type === 'string') exampleVal = bodyType === 'json' ? `"example"` : `example`
|
if (config.type === 'string') exampleVal = bodyType === 'json' ? `"example"` : `example`
|
||||||
else if (config.type === 'boolean') exampleVal = `true`
|
else if (config.type === 'boolean') exampleVal = `true`
|
||||||
else if (config.type === 'number') exampleVal = `1`
|
else if (config.type === 'number') exampleVal = `1`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue