From f427902005fdd453bf3fb6bda348b28e8d25504f Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Thu, 8 May 2025 11:29:16 +0200 Subject: [PATCH] Make `rid` prop in the `Markdown` component optional --- src/components/Markdown.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Markdown.svelte b/src/components/Markdown.svelte index 9ef69ba07..d7326a72d 100644 --- a/src/components/Markdown.svelte +++ b/src/components/Markdown.svelte @@ -12,13 +12,13 @@ import { tick } from "svelte"; interface Props { - rid: string; + rid?: string; content: string; // If true, add
on a single line break breaks?: boolean; } - const { rid, content, breaks = false }: Props = $props(); + const { rid = "", content, breaks = false }: Props = $props(); let container: HTMLElement;