We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6703ce commit ff8363eCopy full SHA for ff8363e
src/targets/rapidql/rapidql.js
@@ -28,13 +28,13 @@ module.exports = function (source, options) {
28
}
29
30
31
- if (source?.postData?.jsonObj) {
+ if (source.postData.jsonObj) {
32
code.push(` json: true,`)
33
- code.push(` body: ${source?.postData?.text}`)
34
- } else if(source?.postData?.params) {
+ code.push(` body: ${source.postData.text}`)
+ } else if(source.postData.params) {
35
code.push(` form : {\n${Object.entries(source.postData.params).map(([key, val]) => `"${key}":"${val}"`).join(",\n")}\n }`);
36
} else {
37
- code.push(` body : ${source?.postData?.text}`);
+ code.push(` body : ${source.postData.text}`);
38
39
40
code.push(" ) {");
0 commit comments