impaktapps-ui-builder 0.0.382-alpha.58 → 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.
|
@@ -8440,10 +8440,10 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
|
|
|
8440
8440
|
if (handlerResponse) {
|
|
8441
8441
|
console.log("console3 : ", handlerResponse);
|
|
8442
8442
|
let body2;
|
|
8443
|
-
if (handlerResponse.data instanceof
|
|
8444
|
-
body2 = { ...handlerResponse.data };
|
|
8445
|
-
} else if (handlerResponse.data instanceof Array) {
|
|
8443
|
+
if (handlerResponse.data instanceof Array) {
|
|
8446
8444
|
body2 = [...handlerResponse.data];
|
|
8445
|
+
} else if (handlerResponse.data instanceof Object) {
|
|
8446
|
+
body2 = { ...handlerResponse.data };
|
|
8447
8447
|
}
|
|
8448
8448
|
store2.setFormdata((pre) => {
|
|
8449
8449
|
return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : body2 };
|