From a0a632f245cf95b9f022c32cf8d29564e47c0d45 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Sun, 31 Aug 2025 16:03:59 -0700 Subject: [PATCH] Save nil if empty string. (#650) --- Sources/Secretive/Views/EditSecretView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Secretive/Views/EditSecretView.swift b/Sources/Secretive/Views/EditSecretView.swift index 4690dde..cdc4114 100644 --- a/Sources/Secretive/Views/EditSecretView.swift +++ b/Sources/Secretive/Views/EditSecretView.swift @@ -53,7 +53,7 @@ struct EditSecretView: 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)