impaktapps-ui-builder 1.0.59-flcikering.0.1 → 1.0.59-flcikering.0.2
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.
|
@@ -10155,15 +10155,18 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
10155
10155
|
}
|
|
10156
10156
|
} else if (eventConfig.type === "page") {
|
|
10157
10157
|
if (!(_.isEmpty(handlerResponse == null ? void 0 : handlerResponse.data) && (handlerResponse == null ? void 0 : handlerResponse.data))) {
|
|
10158
|
+
const clonedData = _.cloneDeep(handlerResponse.data);
|
|
10158
10159
|
store2.newData = {
|
|
10159
10160
|
...store2.newData,
|
|
10160
|
-
...
|
|
10161
|
+
...clonedData
|
|
10161
10162
|
};
|
|
10162
|
-
store2.setFormdata((
|
|
10163
|
-
|
|
10164
|
-
|
|
10163
|
+
store2.setFormdata((prev) => ({
|
|
10164
|
+
...prev,
|
|
10165
|
+
...clonedData
|
|
10166
|
+
}));
|
|
10165
10167
|
}
|
|
10166
10168
|
} else if (eventConfig.type === "Table" && eventConfig.lazyLoading) {
|
|
10169
|
+
console.log("eventConfig.type === Table >>", handlerResponse);
|
|
10167
10170
|
if (handlerResponse && (handlerResponse == null ? void 0 : handlerResponse.data)) {
|
|
10168
10171
|
const tableData = Array.isArray((_a = handlerResponse.data) == null ? void 0 : _a.data) ? cloneDeep(handlerResponse.data.data) : cloneDeep((_b = handlerResponse.data) == null ? void 0 : _b.data);
|
|
10169
10172
|
const rowCount = (_e = (_d = (_c = handlerResponse.data) == null ? void 0 : _c.meta) == null ? void 0 : _d.totalRowCount) != null ? _e : null;
|
|
@@ -10178,10 +10181,13 @@ function mergeFormdata(handlerResponse, componentName, eventConfig, store2, serv
|
|
|
10178
10181
|
}
|
|
10179
10182
|
} else {
|
|
10180
10183
|
if (handlerResponse) {
|
|
10181
|
-
|
|
10182
|
-
|
|
10183
|
-
|
|
10184
|
-
|
|
10184
|
+
console.log("else part >>", handlerResponse);
|
|
10185
|
+
const clonedData = _.cloneDeep(handlerResponse.data);
|
|
10186
|
+
const newFormDataHolder = {
|
|
10187
|
+
...formDataHolder,
|
|
10188
|
+
[componentName]: clonedData
|
|
10189
|
+
};
|
|
10190
|
+
store2.setFormdata((prev) => ({ ...prev, ...newFormDataHolder }));
|
|
10185
10191
|
}
|
|
10186
10192
|
}
|
|
10187
10193
|
}
|