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.
@@ -8343,6 +8343,7 @@ 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);
8346
8347
  const result = await mergeFormdata(
8347
8348
  params2.parentEventOutput,
8348
8349
  params2.componentName,
@@ -8438,8 +8439,14 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
8438
8439
  } else {
8439
8440
  if (handlerResponse) {
8440
8441
  console.log("console3 : ", handlerResponse);
8442
+ let body2;
8443
+ if (handlerResponse.data instanceof Object) {
8444
+ body2 = { ...handlerResponse.data };
8445
+ } else if (handlerResponse.data instanceof Array) {
8446
+ body2 = [...handlerResponse.data];
8447
+ }
8441
8448
  store2.setFormdata((pre) => {
8442
- return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : handlerResponse.data };
8449
+ return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : body2 };
8443
8450
  });
8444
8451
  await asyncOperation();
8445
8452
  }