impaktapps-ui-builder 0.0.310 → 0.0.311
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
|
@@ -42,8 +42,8 @@ async function executeEventsHandler(params: handlersProps) {
|
|
|
42
42
|
return await executeRefreshHandler(params)
|
|
43
43
|
}
|
|
44
44
|
else if (params.config.Handler === "mergeFormdata") {
|
|
45
|
-
const result = mergeFormdata(
|
|
46
|
-
params.parentEventOutput, params.componentName, params.config, params.store)
|
|
45
|
+
const result = await mergeFormdata(
|
|
46
|
+
params.parentEventOutput, params.componentName, params.config, params.store,params.service)
|
|
47
47
|
return result;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -86,7 +86,7 @@ async function executeCustomHandler(params: handlersProps) {
|
|
|
86
86
|
return response;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
function mergeFormdata(handlerResponse: any, componentName: string, eventConfig: any, store: any) {
|
|
89
|
+
async function mergeFormdata(handlerResponse: any, componentName: string, eventConfig: any, store: any,service:any) {
|
|
90
90
|
if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse?.data) && handlerResponse?.data)) {
|
|
91
91
|
store.setSchema((pre) => {
|
|
92
92
|
return {
|
|
@@ -122,6 +122,7 @@ function mergeFormdata(handlerResponse: any, componentName: string, eventConfig:
|
|
|
122
122
|
else {
|
|
123
123
|
if (handlerResponse) {
|
|
124
124
|
store.setFormdata((pre) => { return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : handlerResponse.data } });
|
|
125
|
+
const demoData = await service.get("https://jsonplaceholder.typicode.com/posts/1");
|
|
125
126
|
}
|
|
126
127
|
}
|
|
127
128
|
}
|