@apexcura/ui-components 0.0.11-Beta3 → 0.0.11-Beta4

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 CHANGED
@@ -369,13 +369,16 @@ var AddMoreTable = (props) => {
369
369
  key: eachHeadEl.id
370
370
  })) : [];
371
371
  const dataSource = tbody && tbody.length > 0 ? tbody.map((eachRow, index) => {
372
- const variableData = eachRow.variable_data.reduce;
373
372
  console.log("eachRow---------", eachRow);
374
- console.log("VariableData", { ...variableData });
373
+ const variableData = eachRow.variable_data.reduce((acc, curr) => {
374
+ acc[curr.label] = curr.element;
375
+ return acc;
376
+ }, {});
377
+ console.log("variableData", variableData);
375
378
  return {
376
379
  key: index.toString(),
377
- ...variableData,
378
- ...eachRow
380
+ ...eachRow,
381
+ ...variableData
379
382
  };
380
383
  }) : [];
381
384
  return /* @__PURE__ */ import_react13.default.createElement(import_react13.default.Fragment, null, /* @__PURE__ */ import_react13.default.createElement(
package/dist/index.mjs CHANGED
@@ -322,13 +322,16 @@ var AddMoreTable = (props) => {
322
322
  key: eachHeadEl.id
323
323
  })) : [];
324
324
  const dataSource = tbody && tbody.length > 0 ? tbody.map((eachRow, index) => {
325
- const variableData = eachRow.variable_data.reduce;
326
325
  console.log("eachRow---------", eachRow);
327
- console.log("VariableData", { ...variableData });
326
+ const variableData = eachRow.variable_data.reduce((acc, curr) => {
327
+ acc[curr.label] = curr.element;
328
+ return acc;
329
+ }, {});
330
+ console.log("variableData", variableData);
328
331
  return {
329
332
  key: index.toString(),
330
- ...variableData,
331
- ...eachRow
333
+ ...eachRow,
334
+ ...variableData
332
335
  };
333
336
  }) : [];
334
337
  return /* @__PURE__ */ React12.createElement(React12.Fragment, null, /* @__PURE__ */ React12.createElement(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.11-Beta3",
3
+ "version": "0.0.11-Beta4",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",