Skip to content

Commit

Permalink
fix: Selected session is not highlighted in search
Browse files Browse the repository at this point in the history
  • Loading branch information
navorite committed Oct 14, 2023
1 parent 7be1943 commit 2b13ee5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/popup/sessions/Session.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<li>
<button
class="session-container group {$selected === session
class="session-container group {$selected.id === session.id
? '!bg-primary/30'
: ''}"
on:click={() => selected.select(session)}
Expand Down
2 changes: 0 additions & 2 deletions src/lib/components/popup/sessions/Sessions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,6 @@
if (index <= -1) index = sessions.length - 1;
console.log(index);
selection.select(sessions[index]!);
scrollToIndex(index);
Expand Down

0 comments on commit 2b13ee5

Please sign in to comment.