impaktapps-ui-builder 0.0.289 → 0.0.291
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
|
@@ -101,7 +101,7 @@ async function mergeFormdata(handlerResponse: any, componentName: string, eventC
|
|
|
101
101
|
}
|
|
102
102
|
})
|
|
103
103
|
}
|
|
104
|
-
else if(eventConfig.type
|
|
104
|
+
else if(eventConfig.type === "MultipleSelect" && !(_.isEmpty(handlerResponse) && handlerResponse)){
|
|
105
105
|
store.setSchema((pre) => {
|
|
106
106
|
return {
|
|
107
107
|
...pre, properties: {
|
|
@@ -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
|
|
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) => {
|