diff --git a/src/lib/components/publications/TableOfContents.svelte b/src/lib/components/publications/TableOfContents.svelte index 0f66e4e..c0ad3ef 100644 --- a/src/lib/components/publications/TableOfContents.svelte +++ b/src/lib/components/publications/TableOfContents.svelte @@ -20,8 +20,6 @@ let toc = getContext('toc') as TableOfContents; let entries = $derived.by(() => { - let entries = $derived( - Array const newEntries = []; for (const [_, entry] of toc.addressMap) { if (entry.depth !== depth) { diff --git a/src/lib/components/publications/table_of_contents.svelte.ts b/src/lib/components/publications/table_of_contents.svelte.ts index ea8e4c7..371085c 100644 --- a/src/lib/components/publications/table_of_contents.svelte.ts +++ b/src/lib/components/publications/table_of_contents.svelte.ts @@ -1,6 +1,7 @@ import { SvelteMap } from 'svelte/reactivity'; import { SveltePublicationTree } from './svelte_publication_tree.svelte.ts'; import type { NDKEvent } from '../../utils/nostrUtils.ts'; +import { indexKind } from '../../consts.ts'; export interface TocEntry { address: string;