Merge pull request #2243 from akhilmhdh/fix/missing-coment-field

This commit is contained in:
Maidul Islam
2024-08-06 08:18:18 -04:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
@@ -542,8 +542,8 @@ export const reshapeBridgeSecret = (
secretPath, secretPath,
workspace: workspaceId, workspace: workspaceId,
environment, environment,
secretValue: secret.value, secretValue: secret.value || "",
secretComment: secret.comment, secretComment: secret.comment || "",
version: secret.version, version: secret.version,
type: secret.type, type: secret.type,
_id: secret.id, _id: secret.id,
@@ -522,7 +522,7 @@ export const secretV2BridgeServiceFactory = ({
await expandSecretReferences(secretsGroupByKey); await expandSecretReferences(secretsGroupByKey);
secretsGroupByPath[secretPathKey].forEach((decryptedSecret) => { secretsGroupByPath[secretPathKey].forEach((decryptedSecret) => {
// eslint-disable-next-line no-param-reassign // eslint-disable-next-line no-param-reassign
decryptedSecret.secretValue = secretsGroupByKey[decryptedSecret.secretKey].value; decryptedSecret.secretValue = secretsGroupByKey[decryptedSecret.secretKey].value || "";
}); });
} }
} }