From 27daa26fd9dde5a9d5af56580bb2ceed29b6c80d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Mon, 8 Nov 2021 14:03:21 +0100 Subject: [PATCH] Cleanup Shop layout --- src/routes/shop/__layout.svelte | 37 +++++++++++++++++---------------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/src/routes/shop/__layout.svelte b/src/routes/shop/__layout.svelte index 6185a20..3ccaf2b 100644 --- a/src/routes/shop/__layout.svelte +++ b/src/routes/shop/__layout.svelte @@ -59,7 +59,6 @@ image="" /> -{#key product}
@@ -138,26 +137,28 @@ -
-

View all of our available posters

-
- {#each posters as { location, photos_product }} - - {/each} -
- -
+ {#if posters} +
+

View all of our available posters

+
+ {#each posters as { location, photos_product }} + item.slug.includes(location.slug))} + /> + {/each} +
+ +
+ {/if}
-{/key}