impaktapps-ui-builder 0.0.295 → 0.0.296

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.295",
3
+ "version": "0.0.296",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -89,7 +89,7 @@ async function executeCustomHandler(params:handlersProps) {
89
89
  }
90
90
 
91
91
  async function mergeFormdata(handlerResponse: any, componentName: string, eventConfig: any, store: any) {
92
- if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse) && handlerResponse)) {
92
+ if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse?.data) && handlerResponse?.data)) {
93
93
  store.setSchema((pre) => {
94
94
  return {
95
95
  ...pre, properties: {
@@ -101,7 +101,7 @@ async function mergeFormdata(handlerResponse: any, componentName: string, eventC
101
101
  }
102
102
  })
103
103
  }
104
- else if(eventConfig.type === "MultipleSelect" && !(_.isEmpty(handlerResponse) && handlerResponse)){
104
+ else if(eventConfig.type === "MultipleSelect" && !(_.isEmpty(handlerResponse?.data) && handlerResponse?.data)){
105
105
  store.setSchema((pre) => {
106
106
  return {
107
107
  ...pre, properties: {