From 82544a68bc9a3aac4b94a8d5bcd194db483b1eda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Thu, 20 Feb 2025 16:10:06 -0600 Subject: [PATCH] Fix exception in markdown renderer --- src/components/Markdown.svelte | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/Markdown.svelte b/src/components/Markdown.svelte index 372e17e37..7588f1f63 100644 --- a/src/components/Markdown.svelte +++ b/src/components/Markdown.svelte @@ -47,6 +47,11 @@ content; void tick().then(() => { + // Don't run this if the component hasn't mounted yet. + if (container === null) { + return; + } + for (const e of container.querySelectorAll("a")) { try { const url = new URL(e.href);