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.
|
@@ -8081,11 +8081,12 @@ async function executeEventsHandler(params2) {
|
|
|
8081
8081
|
} else if (params2.config.Handler === "refresh") {
|
|
8082
8082
|
return await executeRefreshHandler(params2);
|
|
8083
8083
|
} else if (params2.config.Handler === "mergeFormdata") {
|
|
8084
|
-
const result = mergeFormdata(
|
|
8084
|
+
const result = await mergeFormdata(
|
|
8085
8085
|
params2.parentEventOutput,
|
|
8086
8086
|
params2.componentName,
|
|
8087
8087
|
params2.config,
|
|
8088
|
-
params2.store
|
|
8088
|
+
params2.store,
|
|
8089
|
+
params2.service
|
|
8089
8090
|
);
|
|
8090
8091
|
return result;
|
|
8091
8092
|
}
|
|
@@ -8126,7 +8127,7 @@ async function executeCustomHandler(params) {
|
|
|
8126
8127
|
const response = await makeFunc(params.store, params.dynamicData, params.userValue, params.parentEventOutput, params.service, params.componentName);
|
|
8127
8128
|
return response;
|
|
8128
8129
|
}
|
|
8129
|
-
function mergeFormdata(handlerResponse, componentName, eventConfig, store2) {
|
|
8130
|
+
async function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2) {
|
|
8130
8131
|
if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
8131
8132
|
store2.setSchema((pre) => {
|
|
8132
8133
|
var _a;
|
|
@@ -8169,6 +8170,7 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2) {
|
|
|
8169
8170
|
store2.setFormdata((pre) => {
|
|
8170
8171
|
return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : handlerResponse.data };
|
|
8171
8172
|
});
|
|
8173
|
+
await service2.get("https://jsonplaceholder.typicode.com/posts/1");
|
|
8172
8174
|
}
|
|
8173
8175
|
}
|
|
8174
8176
|
}
|