From 75cb7305d8e44acfbbbd091ecb75349abe5c8e87 Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Mon, 12 Dec 2022 21:27:58 +0100 Subject: [PATCH] small fix --- .gitignore | 3 ++- src/routes/[manga]/+page.svelte | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index b90b409..14c22fd 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,5 @@ dist /build .env .env.* -!.env.example \ No newline at end of file +!.env.example +.envrc \ No newline at end of file diff --git a/src/routes/[manga]/+page.svelte b/src/routes/[manga]/+page.svelte index 1e680d8..d51ebf9 100644 --- a/src/routes/[manga]/+page.svelte +++ b/src/routes/[manga]/+page.svelte @@ -546,9 +546,9 @@ {/if} - {#if relationships.filter(t => t.type === "manga").length} + {#if relationships.filter(t => t.type === "manga" && typeof t.attributes !== "undefined").length}
- swiper.slideToClosest()} mangaRelations={relationships.filter(t => t.type === "manga")} /> + swiper.slideToClosest()} mangaRelations={relationships.filter(t => t.type === "manga" && typeof t.attributes !== "undefined")} />
{/if}