From ccaaeca74585c64de2ecaf24ab396d71275b38e6 Mon Sep 17 00:00:00 2001 From: Florian <45694132+flo-bit@users.noreply.github.com> Date: Tue, 20 May 2025 17:52:43 +0200 Subject: [PATCH] switch id to avoid crash --- src/routes/Grid.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/routes/Grid.svelte b/src/routes/Grid.svelte index dc2c415..06ecd60 100644 --- a/src/routes/Grid.svelte +++ b/src/routes/Grid.svelte @@ -29,8 +29,10 @@ goto(base + '/?id=' + newPainting.id, {}); } + // old id: co_zNQSuU459j4goZJdGAit732RiN9 + const paintings = $derived( - useCoState(Paintings, 'co_zNQSuU459j4goZJdGAit732RiN9', { + useCoState(Paintings, 'co_znHD7oXLwpqV5VPCfYiiu5q3XBu', { resolve: { $each: { painting: { @@ -63,7 +65,7 @@ {#if paintings.current} - {#each paintings.current.reverse() as painting} + {#each paintings.current.reverse().slice(0, 10) as painting} {#if painting.count > 0}