mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-09-08 05:20:57 +00:00
Save nil if empty string. (#650)
This commit is contained in:
parent
51fed9e593
commit
a0a632f245
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user