fix: avoid using reserved $ for Svelte 5 compat

Co-Authored-By: Eric Fulton <5297269+Sahasrara@users.noreply.github.com>
This commit is contained in:
metonym 2024-03-06 19:05:22 -08:00 committed by Enrico Sacchetti
commit a0d5028540
2 changed files with 4 additions and 4 deletions

View file

@ -23,8 +23,8 @@
ctx.add({ id, text, selected });
const unsubscribe = ctx.currentId.subscribe(($) => {
selected = $ === id;
const unsubscribe = ctx.currentId.subscribe((currentId) => {
selected = currentId === id;
});
afterUpdate(() => {