From c0d81965a30105894a0973be6c4f64dbecc46cc9 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 20 Sep 2024 14:07:28 +0200 Subject: [PATCH] fixed prerender issue --- src/lib/components/YarnWeightChart.svelte | 3 ++- src/routes/blog/yarn-weights/+page.js | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 src/routes/blog/yarn-weights/+page.js diff --git a/src/lib/components/YarnWeightChart.svelte b/src/lib/components/YarnWeightChart.svelte index a1ce43e..5bbc427 100644 --- a/src/lib/components/YarnWeightChart.svelte +++ b/src/lib/components/YarnWeightChart.svelte @@ -3,9 +3,10 @@ import { ALL_YARN_WEIGHTS, yarnWeightIcons } from '$lib/constants'; import { onMount } from 'svelte'; - let highlight = $page.url.searchParams.get('highlight') || null; + let highlight = null; onMount(() => { + highlight = $page.url.searchParams.get('highlight') || null; if (highlight) { const el = document.getElementById(highlight); if (el) { diff --git a/src/routes/blog/yarn-weights/+page.js b/src/routes/blog/yarn-weights/+page.js deleted file mode 100644 index d43d0cd..0000000 --- a/src/routes/blog/yarn-weights/+page.js +++ /dev/null @@ -1 +0,0 @@ -export const prerender = false;