impaktapps-ui-builder 0.0.382-alpha.60 → 0.0.382-alpha.61
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,7 +43,6 @@ 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);
|
|
47
46
|
const result = await mergeFormdata(
|
|
48
47
|
params.parentEventOutput, params.componentName, params.config, params.store, params.service)
|
|
49
48
|
return result;
|
|
@@ -126,25 +125,13 @@ async function mergeFormdata(handlerResponse: any, componentName: string, eventC
|
|
|
126
125
|
})
|
|
127
126
|
}
|
|
128
127
|
else if (eventConfig.type === "page") {
|
|
129
|
-
console.log("console1 : " , handlerResponse);
|
|
130
128
|
if (!(_.isEmpty(handlerResponse?.data) && handlerResponse?.data)) {
|
|
131
|
-
console.log("console2 : " , handlerResponse);
|
|
132
129
|
store.setFormdata((pre: any) => { return { ...pre, ...handlerResponse?.data } })
|
|
133
130
|
}
|
|
134
131
|
}
|
|
135
132
|
else {
|
|
136
133
|
if (handlerResponse) {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
let body;
|
|
140
|
-
|
|
141
|
-
if(handlerResponse.data instanceof Array){
|
|
142
|
-
body = [...handlerResponse.data]
|
|
143
|
-
}else if(handlerResponse.data instanceof Object){
|
|
144
|
-
body = {...handlerResponse.data};
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
store.setFormdata((pre) => { return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : body } });
|
|
134
|
+
store.setFormdata((pre) => { return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : handlerResponse.data } });
|
|
148
135
|
const demoData = await asyncOperation();
|
|
149
136
|
}
|
|
150
137
|
}
|