Radish alpha
r
rad:z4D5UCArafTzTQpDZNQRuqswh3ury
Radicle desktop app
Radicle
Git
Make `rid` prop in the `Markdown` component optional
Sebastian Martinez committed 11 months ago
commit f427902005fdd453bf3fb6bda348b28e8d25504f
parent ce18d02
1 file changed +2 -2
modified src/components/Markdown.svelte
@@ -12,13 +12,13 @@
  import { tick } from "svelte";

  interface Props {
-
    rid: string;
+
    rid?: string;
    content: string;
    // If true, add <br> on a single line break
    breaks?: boolean;
  }

-
  const { rid, content, breaks = false }: Props = $props();
+
  const { rid = "", content, breaks = false }: Props = $props();

  let container: HTMLElement;