mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Fix empty value and comment issues on commit
This commit is contained in:
@@ -463,8 +463,14 @@ export const useCreateCommit = () => {
|
||||
.map((change: PendingSecretUpdate) => ({
|
||||
secretKey: change.secretKey,
|
||||
newSecretName: change.newSecretName,
|
||||
secretValue: change.secretValue || change.existingSecret.value,
|
||||
secretComment: change.secretComment || change.existingSecret.comment,
|
||||
secretValue:
|
||||
change.secretValue === ""
|
||||
? ""
|
||||
: change.secretValue || change.existingSecret.value,
|
||||
secretComment:
|
||||
change.secretComment === ""
|
||||
? ""
|
||||
: change.secretComment || change.existingSecret.comment,
|
||||
skipMultilineEncoding:
|
||||
change.skipMultilineEncoding !== undefined
|
||||
? change.skipMultilineEncoding
|
||||
|
||||
Reference in New Issue
Block a user