Skip to content

Commit

Permalink
fix: Check for selected before accessing id
Browse files Browse the repository at this point in the history
  • Loading branch information
navorite committed Oct 15, 2023
1 parent f269576 commit 7ba2b6f
Showing 1 changed file with 1 addition and 1 deletion.
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.id === session.id
class="session-container group {$selected?.id === session.id
? '!bg-primary/30'
: ''}"
on:click={() => selected.select(session)}
Expand Down

0 comments on commit 7ba2b6f

Please sign in to comment.