@veloceapps/sdk 7.0.2-79 → 7.0.2-80

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.
@@ -581,7 +581,7 @@ const recalculateCardinalityVariables = (original, updated) => {
581
581
  });
582
582
  return {
583
583
  ...updated,
584
- attributes: upsertAttributes(updated.attributes, [...cardinalityVariables].map(([name, value]) => ({ name, value }))),
584
+ attributes: upsertAttributes(updated.attributes, [...cardinalityVariables].map(([name, value]) => ({ name, value, cfgStatus: 'Changed' }))),
585
585
  };
586
586
  };
587
587
  const mapAttributes = (attributes) => {
@@ -596,7 +596,7 @@ const upsertAttributes = (originalAttributes, attributesToUpsert) => {
596
596
  const [origAttr] = getAttributes(acc, [name]);
597
597
  return [
598
598
  ...acc.filter(attr => attr.name !== name),
599
- { ...(origAttr ?? { name }), cfgStatus: 'User', value },
599
+ { ...(origAttr ?? { name }), cfgStatus: origAttr ? 'Changed' : 'User', value },
600
600
  ];
601
601
  }, originalAttributes);
602
602
  };