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.
|
@@ -8343,7 +8343,6 @@ async function executeEventsHandler(params2) {
|
|
|
8343
8343
|
} else if (params2.config.Handler === "refresh") {
|
|
8344
8344
|
return await executeRefreshHandler(params2);
|
|
8345
8345
|
} else if (params2.config.Handler === "mergeFormdata") {
|
|
8346
|
-
console.log("params : ", params2);
|
|
8347
8346
|
const result = await mergeFormdata(
|
|
8348
8347
|
params2.parentEventOutput,
|
|
8349
8348
|
params2.componentName,
|
|
@@ -8429,24 +8428,15 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
|
|
|
8429
8428
|
};
|
|
8430
8429
|
});
|
|
8431
8430
|
} else if (eventConfig.type === "page") {
|
|
8432
|
-
console.log("console1 : ", handlerResponse);
|
|
8433
8431
|
if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
8434
|
-
console.log("console2 : ", handlerResponse);
|
|
8435
8432
|
store2.setFormdata((pre) => {
|
|
8436
8433
|
return { ...pre, ...handlerResponse == null ? void 0 : handlerResponse.data };
|
|
8437
8434
|
});
|
|
8438
8435
|
}
|
|
8439
8436
|
} else {
|
|
8440
8437
|
if (handlerResponse) {
|
|
8441
|
-
console.log("console3 : ", handlerResponse);
|
|
8442
|
-
let body2;
|
|
8443
|
-
if (handlerResponse.data instanceof Array) {
|
|
8444
|
-
body2 = [...handlerResponse.data];
|
|
8445
|
-
} else if (handlerResponse.data instanceof Object) {
|
|
8446
|
-
body2 = { ...handlerResponse.data };
|
|
8447
|
-
}
|
|
8448
8438
|
store2.setFormdata((pre) => {
|
|
8449
|
-
return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data :
|
|
8439
|
+
return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : handlerResponse.data };
|
|
8450
8440
|
});
|
|
8451
8441
|
await asyncOperation();
|
|
8452
8442
|
}
|