@lowcodeunit/applications-flow-common 1.37.170-oct-bugs → 1.37.172-oct-bugs

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.
@@ -5383,14 +5383,14 @@ class BuildPipelineFormComponent {
5383
5383
  if (this.NPMTokenFormControl?.value) {
5384
5384
  const secretLookup = 'npm-access-token';
5385
5385
  doa.SecretLookups = [secretLookup];
5386
- saveEnvReq.Environment.Secrets[secretLookup] = {
5387
- Name: 'NPM Access Token',
5388
- DataTokenLookup: secretLookup,
5389
- KnownAs: 'NPM_TOKEN',
5390
- };
5386
+ if (!saveEnvReq.Environment.Secrets[secretLookup]) {
5387
+ saveEnvReq.Environment.Secrets[secretLookup] = {
5388
+ Name: 'NPM Access Token',
5389
+ DataTokenLookup: secretLookup,
5390
+ KnownAs: 'NPM_TOKEN',
5391
+ };
5392
+ }
5391
5393
  saveEnvReq.EnterpriseDataTokens[secretLookup] = {
5392
- Name: saveEnvReq.Environment.Secrets[secretLookup].Name,
5393
- Description: saveEnvReq.Environment.Secrets[secretLookup].Name,
5394
5394
  Value: this.NPMTokenFormControl.value,
5395
5395
  };
5396
5396
  }