Fix detail update on dismiss of edit screen. (#687)

This commit is contained in:
Max Goedjen
2025-09-10 00:29:12 -07:00
committed by GitHub
parent 7c7db56c1e
commit cf7c6e9fbe
3 changed files with 13 additions and 16 deletions

View File

@@ -12,9 +12,9 @@ struct StoreListView: View {
}
private func secretRenamed(secret: AnySecret) {
// Toggle so name updates in list.
// Pull new version from store, so we get all updated attributes
activeSecret = nil
activeSecret = secret
activeSecret = storeList.allSecrets.first(where: { $0.id == secret.id })
}
var body: some View {
@@ -28,7 +28,7 @@ struct StoreListView: View {
store: store,
secret: secret,
deletedSecret: secretDeleted,
renamedSecret: secretRenamed
renamedSecret: secretRenamed,
)
}
}