impaktapps-ui-builder 0.0.382-alpha.57 → 0.0.382-alpha.59
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.
|
@@ -8439,8 +8439,14 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
|
|
|
8439
8439
|
} else {
|
|
8440
8440
|
if (handlerResponse) {
|
|
8441
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
|
+
}
|
|
8442
8448
|
store2.setFormdata((pre) => {
|
|
8443
|
-
return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data :
|
|
8449
|
+
return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : body2 };
|
|
8444
8450
|
});
|
|
8445
8451
|
await asyncOperation();
|
|
8446
8452
|
}
|