Save nil if empty string. (#650)

This commit is contained in:
Max Goedjen authored and GitHub committed 2025-08-31 23:03:59 +00:00
1 parent 51fed9e593
commit a0a632f245
1 file changed
+1 -1
+1 -1
View File
@@ -53,7 +53,7 @@ struct EditSecretView<StoreType: SecretStoreModifiable>: View {
func rename() {
var attributes = secret.attributes
attributes.publicKeyAttribution = publicKeyAttribution
attributes.publicKeyAttribution = publicKeyAttribution.isEmpty ? nil : publicKeyAttribution
Task {
do {
try await store.update(secret: secret, name: name, attributes: attributes)