@veloceapps/sdk 7.0.2-79 → 7.0.2-80

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
  };