impaktapps-ui-builder 0.0.97 → 0.0.99
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
|
@@ -146,7 +146,7 @@ function executeCustomHandler(params: handlersProps) {
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
function mergeFormdata(handlerResponse: any, componentName: string, eventConfig: any, store: any, service: any, formDataHolder: any) {
|
|
149
|
-
if (eventConfig.type === "Select" && handlerResponse?.data) {
|
|
149
|
+
if (eventConfig.type === "Select" && handlerResponse?.data && !_.isEmpty(handlerResponse?.data)) {
|
|
150
150
|
store.setSchema((pre) => {
|
|
151
151
|
return {
|
|
152
152
|
...pre, properties: {
|
|
@@ -158,7 +158,7 @@ function mergeFormdata(handlerResponse: any, componentName: string, eventConfig:
|
|
|
158
158
|
}
|
|
159
159
|
})
|
|
160
160
|
}
|
|
161
|
-
else if (eventConfig.type === "MultipleSelect" && handlerResponse?.data) {
|
|
161
|
+
else if (eventConfig.type === "MultipleSelect" && handlerResponse?.data && !_.isEmpty(handlerResponse?.data)) {
|
|
162
162
|
store.setSchema((pre) => {
|
|
163
163
|
return {
|
|
164
164
|
...pre, properties: {
|