impaktapps-ui-builder 0.0.382-alpha.57 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.382-alpha.57",
3
+ "version": "0.0.382-alpha.58",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -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
- store.setFormdata((pre) => { return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : handlerResponse.data } });
138
+
139
+ let body;
140
+
141
+ if(handlerResponse.data instanceof Object){
142
+ body = {...handlerResponse.data};
143
+ }else if(handlerResponse.data instanceof Array){
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
  }