From 261b324d1bcfa8d1b1db8631fbaf9b5cf2ff2d41 Mon Sep 17 00:00:00 2001 From: buttercat1791 Date: Mon, 16 Jun 2025 07:41:06 -0500 Subject: [PATCH] Fix code mangled by git --- src/lib/components/publications/TableOfContents.svelte | 2 -- src/lib/components/publications/table_of_contents.svelte.ts | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) 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;