impaktapps-ui-builder 0.0.289 → 0.0.290

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.289",
3
+ "version": "0.0.290",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -129,7 +129,7 @@ async function mergeFormdata(handlerResponse: any, componentName: string, eventC
129
129
  const buildBodyFormat = (body: any[], formData: any, userValue: any) => {
130
130
  const finalBody = { ...userValue?.payload };
131
131
  body.map((elem) => {
132
- if (elem?.value !== "string") {
132
+ if(typeof elem?.value !== "string") {
133
133
  finalBody[elem.key] = elem.value;
134
134
  } else {
135
135
  if (elem?.value?.startsWith("$userValue")) {
@@ -149,7 +149,7 @@ const buildBodyFormat = (body: any[], formData: any, userValue: any) => {
149
149
 
150
150
  const buildHeadersFormat = (headers: any[]) => {
151
151
  const headerObj = {
152
- "Content-Type": "application/json",
152
+ // "Content-Type": "application/json",
153
153
  "X-Requested-With": "XMLHttpRequest"
154
154
  }
155
155
  headers.map((elem) => {