@apexcura/ui-components 0.0.12-Beta10 → 0.0.12-Beta12
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/dist/index.js +7 -3
- package/dist/index.mjs +7 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -408,9 +408,13 @@ var AddMoreTable = (props) => {
|
|
|
408
408
|
rowElements[eachRow.label] = renderInputElement(eachRow);
|
|
409
409
|
}
|
|
410
410
|
const variableData = eachRow.variable_data && Array.isArray(eachRow.variable_data) ? eachRow.variable_data.reduce((acc, curr) => {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
411
|
+
for (let i = 0; i < curr.length; i++) {
|
|
412
|
+
Object.keys(curr[i].forEach((key) => {
|
|
413
|
+
if (curr[i][key] && curr[i][key].element) {
|
|
414
|
+
rowElements[eachRow.label] = renderInputElement(eachRow);
|
|
415
|
+
}
|
|
416
|
+
}));
|
|
417
|
+
}
|
|
414
418
|
return acc;
|
|
415
419
|
}, {}) : {};
|
|
416
420
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -361,9 +361,13 @@ var AddMoreTable = (props) => {
|
|
|
361
361
|
rowElements[eachRow.label] = renderInputElement(eachRow);
|
|
362
362
|
}
|
|
363
363
|
const variableData = eachRow.variable_data && Array.isArray(eachRow.variable_data) ? eachRow.variable_data.reduce((acc, curr) => {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
364
|
+
for (let i = 0; i < curr.length; i++) {
|
|
365
|
+
Object.keys(curr[i].forEach((key) => {
|
|
366
|
+
if (curr[i][key] && curr[i][key].element) {
|
|
367
|
+
rowElements[eachRow.label] = renderInputElement(eachRow);
|
|
368
|
+
}
|
|
369
|
+
}));
|
|
370
|
+
}
|
|
367
371
|
return acc;
|
|
368
372
|
}, {}) : {};
|
|
369
373
|
return {
|