diff --git a/src/FilterItem.svelte b/src/FilterItem.svelte index 6d9d963..95432fc 100644 --- a/src/FilterItem.svelte +++ b/src/FilterItem.svelte @@ -96,7 +96,10 @@ return source ? source.export_url : undefined; })(); - initial.includes(item) ? filtering.setChecked() : filtering.setUnchecked(); + setTimeout( + () => (initial.includes(item) ? filtering.setChecked() : filtering.setUnchecked()), + 0 + ); $: selected = $filtering === CHECKED ? [item, ...subselected.flat()] : subselected.flat(); diff --git a/src/calendar.js b/src/calendar.js index e8b9469..559e10c 100644 --- a/src/calendar.js +++ b/src/calendar.js @@ -26,8 +26,7 @@ const calendars = { w442JdS5AaQ6czrP: { cloud: clouds.ELEVES_ENS, name: "Écriv'ENS", - color: null, - initial: false + color: null }, fRtjDkjrZyn6fxd8: { cloud: clouds.ELEVES_ENS,