Browse Source

Fix code mangled by git

master
buttercat1791 9 months ago
parent
commit
261b324d1b
  1. 2
      src/lib/components/publications/TableOfContents.svelte
  2. 1
      src/lib/components/publications/table_of_contents.svelte.ts

2
src/lib/components/publications/TableOfContents.svelte

@ -20,8 +20,6 @@ @@ -20,8 +20,6 @@
let toc = getContext('toc') as TableOfContents;
let entries = $derived.by<TocEntry[]>(() => {
let entries = $derived(
Array
const newEntries = [];
for (const [_, entry] of toc.addressMap) {
if (entry.depth !== depth) {

1
src/lib/components/publications/table_of_contents.svelte.ts

@ -1,6 +1,7 @@ @@ -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;

Loading…
Cancel
Save