Bug fix - ChatBot Share - CURL with i/p config (#2672)

pull/2613/head^2
Harsha 2024-06-21 20:41:34 +05:30 committed by GitHub
parent 83ecc88b35
commit aec9e7a3b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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`