mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-11-19 03:55:59 +01:00
fix secret list not updating after rename (#834)
Co-authored-by: Max Goedjen <max.goedjen@gmail.com>
This commit is contained in:
1 parent
56c2f841ed
commit
0d1ca5e744
2 files changed
-5
No files matched your search
@@ -23,10 +23,6 @@ extension SecureEnclave {
|
|||||||
self.attributes = attributes
|
self.attributes = attributes
|
||||||
}
|
}
|
||||||
|
|
||||||
public static func ==(lhs: Self, rhs: Self) -> Bool {
|
|
||||||
lhs.id == rhs.id
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -21,7 +21,6 @@ struct StoreListView: View {
|
|||||||
|
|
||||||
private func secretRenamed(secret: AnySecret) {
|
private func secretRenamed(secret: AnySecret) {
|
||||||
// Pull new version from store, so we get all updated attributes
|
// Pull new version from store, so we get all updated attributes
|
||||||
selection = nil
|
|
||||||
selection = storeList.allSecrets.first(where: { $0.id == secret.id }).map(StoreListSelection.secret)
|
selection = storeList.allSecrets.first(where: { $0.id == secret.id }).map(StoreListSelection.secret)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user