contentoh-components-library 21.5.26 → 21.5.27

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.
@@ -1224,11 +1224,9 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1224
1224
  articleData: updatedDescriptions
1225
1225
  };
1226
1226
  dataObject.articleData = dataObject.articleData.map(function (item) {
1227
- var attributeId = item.attributeId;
1227
+ var attributeId = item.attributeId; //if (approvedInputs.hasOwnProperty(attributeId)) {
1228
1228
 
1229
- if (approvedInputs.hasOwnProperty(attributeId)) {
1230
- item.isApproved = true;
1231
- }
1229
+ item.isApproved = true; //}
1232
1230
 
1233
1231
  return item;
1234
1232
  });
@@ -1428,11 +1426,15 @@ var ProviderProductEdition = function ProviderProductEdition(_ref) {
1428
1426
  e.uuid = (0, _uuid.v4)();
1429
1427
  });
1430
1428
  data.updateImages = data.updateImages.map(function (image) {
1431
- if (approvedInputsImages[image.image_id] !== undefined) {
1432
- return (0, _objectSpread5.default)((0, _objectSpread5.default)({}, image), {}, {
1433
- isApproved: approvedInputsImages[image.image_id]
1434
- });
1435
- }
1429
+ return (0, _objectSpread5.default)((0, _objectSpread5.default)({}, image), {}, {
1430
+ isApproved: true
1431
+ });
1432
+ /**if (approvedInputsImages[image.image_id] !== undefined) {
1433
+ return {
1434
+ ...image,
1435
+ isApproved: approvedInputsImages[image.image_id],
1436
+ };
1437
+ }**/
1436
1438
 
1437
1439
  return image;
1438
1440
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.5.26",
3
+ "version": "21.5.27",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -701,9 +701,9 @@ export const ProviderProductEdition = ({
701
701
  };
702
702
  dataObject.articleData = dataObject.articleData.map((item) => {
703
703
  const attributeId = item.attributeId;
704
- if (approvedInputs.hasOwnProperty(attributeId)) {
705
- item.isApproved = true;
706
- }
704
+ //if (approvedInputs.hasOwnProperty(attributeId)) {
705
+ item.isApproved = true;
706
+ //}
707
707
  return item;
708
708
  });
709
709
 
@@ -828,12 +828,16 @@ export const ProviderProductEdition = ({
828
828
  e.uuid = uuidv4();
829
829
  });
830
830
  data.updateImages = data.updateImages.map((image) => {
831
- if (approvedInputsImages[image.image_id] !== undefined) {
831
+ return {
832
+ ...image,
833
+ isApproved: true,
834
+ };
835
+ /**if (approvedInputsImages[image.image_id] !== undefined) {
832
836
  return {
833
837
  ...image,
834
838
  isApproved: approvedInputsImages[image.image_id],
835
839
  };
836
- }
840
+ }**/
837
841
  return image;
838
842
  });
839
843
  setDataImages(data);