We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dab5a1d commit abddcc1Copy full SHA for abddcc1
src/lib/components/Post.svelte
@@ -41,7 +41,7 @@
41
{/if}
42
43
<TableOfContent {tableOfContent} />
44
-
+
45
{#each blocks as block}
46
<div class="my-4">
47
<Block {block} />
src/lib/components/TableOfContent.svelte
@@ -1,10 +1,9 @@
1
<script lang="ts">
2
import type { TableOfContentItems } from "$lib/types";
3
export let tableOfContent: (TableOfContentItems | undefined)[] | undefined;
4
5
</script>
6
7
-{#if tableOfContent && tableOfContent.length > 0 && !tableOfContent?.some((s)=> s==null)}
+{#if tableOfContent && tableOfContent?.length > 0}
8
<ul class="bg-slate-100 rounded-md w-full py-6 list-none">
9
{#each tableOfContent as content }
10
{#if content}
0 commit comments