impaktapps-ui-builder 0.0.382-alpha.56 → 0.0.382-alpha.58
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
|
@@ -43,6 +43,7 @@ async function executeEventsHandler(params: handlersProps) {
|
|
|
43
43
|
return await executeRefreshHandler(params)
|
|
44
44
|
}
|
|
45
45
|
else if (params.config.Handler === "mergeFormdata") {
|
|
46
|
+
console.log("params : " , params);
|
|
46
47
|
const result = await mergeFormdata(
|
|
47
48
|
params.parentEventOutput, params.componentName, params.config, params.store, params.service)
|
|
48
49
|
return result;
|
|
@@ -134,7 +135,16 @@ async function mergeFormdata(handlerResponse: any, componentName: string, eventC
|
|
|
134
135
|
else {
|
|
135
136
|
if (handlerResponse) {
|
|
136
137
|
console.log("console3 : " , handlerResponse);
|
|
137
|
-
|
|
138
|
+
|
|
139
|
+
let body;
|
|
140
|
+
|
|
141
|
+
if(handlerResponse.data instanceof Object){
|
|
142
|
+
body = {...handlerResponse.data};
|
|
143
|
+
}else if(handlerResponse.data instanceof Array){
|
|
144
|
+
body = [...handlerResponse.data]
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
store.setFormdata((pre) => { return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : body } });
|
|
138
148
|
const demoData = await asyncOperation();
|
|
139
149
|
}
|
|
140
150
|
}
|