From ecd403c7cfca4fbfb847429148b6d89dccab3df8 Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Sun, 31 Aug 2025 16:02:39 -0700 Subject: [PATCH] Save nil if empty string. --- 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)