mirror of
https://github.com/danbulant/Mangades
synced 2026-06-13 19:31:27 +00:00
use array ids
This commit is contained in:
parent
39afafacab
commit
3b0b3cfbc2
3 changed files with 3 additions and 3 deletions
|
|
@ -54,7 +54,7 @@
|
|||
{/if}
|
||||
|
||||
<div class="items" class:list={$showType == "list"}>
|
||||
{#each entries.sort((a, b) => a.priority - b.priority) as entry}
|
||||
{#each entries.sort((a, b) => a.priority - b.priority) as entry (entry.media.id)}
|
||||
<Item
|
||||
r18={entry.media.isAdult}
|
||||
cover={entry.media.coverImage.large}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
|
||||
<div class="items" class:list={$showType == "list"}>
|
||||
{#each entries as entry}
|
||||
{#each entries as entry (entry.id)}
|
||||
<a href="/{entry.id}">
|
||||
<Item
|
||||
r18={!["safe", "suggestive"].includes(entry.attributes.contentRating)}
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@
|
|||
<ShowTypeChooser />
|
||||
|
||||
<div class="grid" class:list={$showType == "list"}>
|
||||
{#each mangaRelations as manga}
|
||||
{#each mangaRelations.filter(t => $showNsfw !== "hide" || ["safe", "suggestive"].includes(t.attributes.contentRating)) as manga (manga.id)}
|
||||
<a href="/{manga.id}" class="manga">
|
||||
{#await relations then relations}
|
||||
<Item
|
||||
|
|
|
|||
Loading…
Reference in a new issue