remove extraneous depth field

This commit is contained in:
Mikayla 2023-09-09 12:10:18 -07:00
parent 8222102d01
commit 77cdbdb12a
No known key found for this signature in database
3 changed files with 17 additions and 13 deletions

View file

@ -785,8 +785,9 @@ impl CollabPanel {
}
let mut collapse_depth = None;
for mat in matches {
let (depth, channel, path) =
let (channel, path) =
channel_store.channel_at_index(mat.candidate_id).unwrap();
let depth = path.len() - 1;
let location: ChannelLocation<'_> = (channel.id, path).into();