@apexcura/ui-components 0.0.12-Beta11 → 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 -1
- package/dist/index.mjs +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -408,7 +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
|
-
|
|
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
|
+
}
|
|
412
418
|
return acc;
|
|
413
419
|
}, {}) : {};
|
|
414
420
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -361,7 +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
|
-
|
|
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
|
+
}
|
|
365
371
|
return acc;
|
|
366
372
|
}, {}) : {};
|
|
367
373
|
return {
|