Skip to content

Commit

Permalink
Fix item type display in item piles
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Aug 23, 2024
1 parent c46e00e commit f26305e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { localize } from '#runtime/svelte/helper';
import { fade } from 'svelte/transition';
import ListEntry from "./ListEntry.svelte";
import ListGroupEntry from "./ListGroupEntry.svelte";
export let store;
const numItems = store.numItems;
Expand All @@ -16,14 +16,14 @@

<div in:fade|local={{duration: 150}}>

{#each $categories as category, index (category.type)}
{#each $categories as category (category.type)}
<div class="item-group-type item-piles-flexrow">
<h3>{localize(category.label)}</h3>
</div>

<div class="item-piles-items-list">
{#each $itemsPerCategory[category.type].items as item (item.id)}
<ListEntry {store} bind:entry={item}/>
{#each $itemsPerCategory[category.type].items as item, index (item.identifier)}
<ListGroupEntry {item} {index} {store}/>
{/each}
</div>
{/each}
Expand Down

0 comments on commit f26305e

Please sign in to comment.