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.
package/package.json
CHANGED
|
@@ -135,7 +135,16 @@ async function mergeFormdata(handlerResponse: any, componentName: string, eventC
|
|
|
135
135
|
else {
|
|
136
136
|
if (handlerResponse) {
|
|
137
137
|
console.log("console3 : " , handlerResponse);
|
|
138
|
-
|
|
138
|
+
|
|
139
|
+
let body;
|
|
140
|
+
|
|
141
|
+
if(handlerResponse.data instanceof Array){
|
|
142
|
+
body = [...handlerResponse.data]
|
|
143
|
+
}else if(handlerResponse.data instanceof Object){
|
|
144
|
+
body = {...handlerResponse.data};
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
store.setFormdata((pre) => { return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : body } });
|
|
139
148
|
const demoData = await asyncOperation();
|
|
140
149
|
}
|
|
141
150
|
}
|