impaktapps-ui-builder 0.0.294 → 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.
|
@@ -9920,7 +9920,7 @@ async function executeCustomHandler(params) {
|
|
|
9920
9920
|
return response;
|
|
9921
9921
|
}
|
|
9922
9922
|
async function mergeFormdata(handlerResponse, componentName, eventConfig, store2) {
|
|
9923
|
-
if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse) && handlerResponse)) {
|
|
9923
|
+
if (eventConfig.type === "Select" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
9924
9924
|
store2.setSchema((pre) => {
|
|
9925
9925
|
var _a;
|
|
9926
9926
|
return {
|
|
@@ -9934,7 +9934,7 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
|
|
|
9934
9934
|
}
|
|
9935
9935
|
};
|
|
9936
9936
|
});
|
|
9937
|
-
} else if (eventConfig.type === "MultipleSelect" && !(_.isEmpty(handlerResponse) && handlerResponse)) {
|
|
9937
|
+
} else if (eventConfig.type === "MultipleSelect" && !(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
9938
9938
|
store2.setSchema((pre) => {
|
|
9939
9939
|
var _a;
|
|
9940
9940
|
return {
|
|
@@ -9958,7 +9958,7 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
|
|
|
9958
9958
|
} else {
|
|
9959
9959
|
if (handlerResponse) {
|
|
9960
9960
|
store2.setFormdata((pre) => {
|
|
9961
|
-
return { ...pre, [componentName]: handlerResponse };
|
|
9961
|
+
return { ...pre, [componentName]: handlerResponse.data };
|
|
9962
9962
|
});
|
|
9963
9963
|
}
|
|
9964
9964
|
}
|