Fix empty value and comment issues on commit

This commit is contained in:
Carlos Monastyrski
2025-07-21 16:58:15 -03:00
parent ceae1ed0e1
commit 4a6e4a90ee

View File

@@ -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