mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-09-09 05:50:57 +00:00
Fix deleting key attribution (#648)
This commit is contained in:
parent
c2eb5ce1f6
commit
8aacd428b1
@ -53,9 +53,7 @@ struct EditSecretView<StoreType: SecretStoreModifiable>: View {
|
|||||||
|
|
||||||
func rename() {
|
func rename() {
|
||||||
var attributes = secret.attributes
|
var attributes = secret.attributes
|
||||||
if !publicKeyAttribution.isEmpty {
|
|
||||||
attributes.publicKeyAttribution = publicKeyAttribution
|
attributes.publicKeyAttribution = publicKeyAttribution
|
||||||
}
|
|
||||||
Task {
|
Task {
|
||||||
do {
|
do {
|
||||||
try await store.update(secret: secret, name: name, attributes: attributes)
|
try await store.update(secret: secret, name: name, attributes: attributes)
|
||||||
|
Loading…
Reference in New Issue
Block a user