contentoh-components-library 21.4.46 → 21.4.47

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.
@@ -1226,16 +1226,18 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1226
1226
  case 0:
1227
1227
  inputs = function () {
1228
1228
  var fields = {};
1229
+ var keyCount = 1;
1229
1230
  boxData.map(function (e) {
1230
1231
  return (0, _objectSpread3.default)({}, e.value);
1231
1232
  }).forEach(function (item, k) {
1232
1233
  for (var key in item) {
1233
1234
  if (!fields[key]) {
1234
1235
  fields[key] = {};
1236
+ fields[key].box = {};
1235
1237
  }
1236
1238
 
1237
- fields[key].box = fields[key].box || {};
1238
- fields[key].box[k] = item[key];
1239
+ fields[key].box[keyCount] = item[key];
1240
+ keyCount++;
1239
1241
  }
1240
1242
  });
1241
1243
  return fields;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.4.46",
3
+ "version": "21.4.47",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -685,19 +685,20 @@ export const ProviderProductEdition = ({
685
685
  const inputs = (() => {
686
686
 
687
687
  let fields = {}
688
-
689
- boxData.map(e=>({
690
- ...e.value,
688
+ let keyCount = 1;
689
+ boxData.map(e => ({
690
+ ...e.value,
691
691
  })).forEach((item, k) => {
692
-
693
- for (const key in item) {
694
- if (!fields[key]) {
695
- fields[key] = {};
696
- }
697
- fields[key].box = fields[key].box || {};
698
- fields[key].box[k] = item[key];
692
+
693
+ for (const key in item) {
694
+ if (!fields[key]) {
695
+ fields[key] = {};
696
+ fields[key].box = {};
699
697
  }
700
-
698
+ fields[key].box[keyCount] = item[key];
699
+ keyCount++;
700
+ }
701
+
701
702
  })
702
703
 
703
704
  return fields