diff --git a/apps/manacore/apps/web/src/lib/modules/calendar/ListView.svelte b/apps/manacore/apps/web/src/lib/modules/calendar/ListView.svelte index e2ac83c2d..4e78e6edb 100644 --- a/apps/manacore/apps/web/src/lib/modules/calendar/ListView.svelte +++ b/apps/manacore/apps/web/src/lib/modules/calendar/ListView.svelte @@ -12,10 +12,13 @@ import type { ViewProps } from '$lib/components/workbench/nav-stack'; import { dropTarget } from '@manacore/shared-ui/dnd'; import type { TagDragData } from '@manacore/shared-ui/dnd'; - import { getTagsByIds } from '$lib/stores/tags.svelte'; + import { useAllTags, getTagsByIds } from '$lib/stores/tags.svelte'; let { navigate, goBack, params }: ViewProps = $props(); + const tagsQuery = useAllTags(); + let allTags = $derived(tagsQuery.value ?? []); + function handleTagDrop(eventId: string, tagData: TagDragData) { const event = events.find((e) => e.id === eventId); if (!event) return; @@ -133,7 +136,7 @@ {#each todayEvents as event (event.id)} - {@const eventTags = getTagsByIds(event.tagIds ?? [])} + {@const eventTags = getTagsByIds(allTags, event.tagIds ?? [])}