impaktapps-ui-builder 1.0.72-flickering.2 → 1.0.72-flickering.3

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.
@@ -10053,7 +10053,7 @@ function executeCustomHandler(params) {
10053
10053
  }
10054
10054
  }
10055
10055
  function mergeFormdata(handlerResponse, componentName, eventConfig, store2, service2, formDataHolder) {
10056
- var _a, _b, _c, _d, _e;
10056
+ var _a, _b, _c;
10057
10057
  if (eventConfig.type === "Select" && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10058
10058
  if (!_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data)) {
10059
10059
  store2.setSchema((pre) => {
@@ -10101,15 +10101,10 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
10101
10101
  }
10102
10102
  } else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
10103
10103
  if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
10104
- const tableData = Array.isArray((_a = handlerResponse.data) == null ? void 0 : _a.data) ? _(handlerResponse.data.data) : _((_b = handlerResponse.data) == null ? void 0 : _b.data);
10105
- const rowCount = (_e = (_d = (_c = handlerResponse.data) == null ? void 0 : _c.meta) == null ? void 0 : _d.totalRowCount) != null ? _e : null;
10106
- const newFormDataHolder = {
10107
- ...formDataHolder,
10108
- [componentName]: tableData,
10109
- [`${componentName}_RowCount`]: rowCount
10110
- };
10111
- store2.setFormdata((prev) => {
10112
- return { ...prev, ...newFormDataHolder };
10104
+ formDataHolder[componentName] = (_a = handlerResponse.data) == null ? void 0 : _a.data;
10105
+ formDataHolder[`${componentName}_RowCount`] = (_c = (_b = handlerResponse.data) == null ? void 0 : _b.meta) == null ? void 0 : _c.totalRowCount;
10106
+ store2.setFormdata((pre) => {
10107
+ return { ...pre, ...formDataHolder };
10113
10108
  });
10114
10109
  }
10115
10110
  } else {
@@ -12254,7 +12249,7 @@ const buildUploadFileIcon = (config2, componentScope2) => {
12254
12249
  UploadFileIcon.config.layout = createLayoutFormat(config2.layout);
12255
12250
  }
12256
12251
  if (config2.style) {
12257
- UploadFileIcon.config.style = config2.style;
12252
+ UploadFileIcon.config.style = JSON.parse(config2.style);
12258
12253
  }
12259
12254
  if (config2.required) {
12260
12255
  UploadFileIcon.config.main.required = true;