assistant2: Fix incorrect action when clicking on a profile (#27710)

This PR fixes an issue where clicking on a profile entry would fork it
instead of viewing it.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2025-03-28 19:22:56 -04:00 committed by GitHub
parent 35da9c0cdc
commit e171d16ae3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -363,7 +363,7 @@ impl ManageProfilesModal {
.on_click({
let profile_id = profile.id.clone();
cx.listener(move |this, _, window, cx| {
this.new_profile(Some(profile_id.clone()), window, cx);
this.view_profile(profile_id.clone(), window, cx);
})
}),
)