Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Make `rid` prop in the `Markdown` component optional
Sebastian Martinez committed 1 year ago
commit f427902005fdd453bf3fb6bda348b28e8d25504f
parent ce18d024a00c9875ce601a55a47a2c8d71344eb5
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;