apply same keyed each fix to other collection pages
prevent potential crash at 250+ items
This commit is contained in:
parent
8a07691c0b
commit
4c2b466e5a
3 changed files with 6 additions and 6 deletions
|
|
@ -270,7 +270,7 @@
|
||||||
</div>
|
</div>
|
||||||
{:else if currentViewMode === 'grid'}
|
{:else if currentViewMode === 'grid'}
|
||||||
<div class="artifact-grid">
|
<div class="artifact-grid">
|
||||||
{#each allArtifacts as artifact (artifact.id)}
|
{#each allArtifacts as artifact, i (i)}
|
||||||
<SelectableCollectionCard id={artifact.id} onClick={() => openArtifactDetails(artifact)}>
|
<SelectableCollectionCard id={artifact.id} onClick={() => openArtifactDetails(artifact)}>
|
||||||
<CollectionArtifactCard {artifact} />
|
<CollectionArtifactCard {artifact} />
|
||||||
</SelectableCollectionCard>
|
</SelectableCollectionCard>
|
||||||
|
|
@ -278,7 +278,7 @@
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="artifact-list">
|
<div class="artifact-list">
|
||||||
{#each allArtifacts as artifact (artifact.id)}
|
{#each allArtifacts as artifact, i (i)}
|
||||||
<SelectableCollectionRow id={artifact.id} onClick={() => openArtifactDetails(artifact)}>
|
<SelectableCollectionRow id={artifact.id} onClick={() => openArtifactDetails(artifact)}>
|
||||||
<CollectionArtifactRow {artifact} />
|
<CollectionArtifactRow {artifact} />
|
||||||
</SelectableCollectionRow>
|
</SelectableCollectionRow>
|
||||||
|
|
|
||||||
|
|
@ -164,7 +164,7 @@
|
||||||
</div>
|
</div>
|
||||||
{:else if currentViewMode === 'grid'}
|
{:else if currentViewMode === 'grid'}
|
||||||
<div class="character-grid">
|
<div class="character-grid">
|
||||||
{#each allCharacters as character (character.id)}
|
{#each allCharacters as character, i (i)}
|
||||||
<SelectableCollectionCard id={character.id} onClick={() => openCharacterDetails(character)}>
|
<SelectableCollectionCard id={character.id} onClick={() => openCharacterDetails(character)}>
|
||||||
<CollectionCharacterCard {character} />
|
<CollectionCharacterCard {character} />
|
||||||
</SelectableCollectionCard>
|
</SelectableCollectionCard>
|
||||||
|
|
@ -172,7 +172,7 @@
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="character-list">
|
<div class="character-list">
|
||||||
{#each allCharacters as character (character.id)}
|
{#each allCharacters as character, i (i)}
|
||||||
<SelectableCollectionRow id={character.id} onClick={() => openCharacterDetails(character)}>
|
<SelectableCollectionRow id={character.id} onClick={() => openCharacterDetails(character)}>
|
||||||
<CollectionCharacterRow {character} />
|
<CollectionCharacterRow {character} />
|
||||||
</SelectableCollectionRow>
|
</SelectableCollectionRow>
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,7 @@
|
||||||
</div>
|
</div>
|
||||||
{:else if currentViewMode === 'grid'}
|
{:else if currentViewMode === 'grid'}
|
||||||
<div class="summon-grid">
|
<div class="summon-grid">
|
||||||
{#each allSummons as summon (summon.id)}
|
{#each allSummons as summon, i (i)}
|
||||||
<SelectableCollectionCard id={summon.id} onClick={() => openSummonDetails(summon)}>
|
<SelectableCollectionCard id={summon.id} onClick={() => openSummonDetails(summon)}>
|
||||||
<CollectionSummonCard {summon} />
|
<CollectionSummonCard {summon} />
|
||||||
</SelectableCollectionCard>
|
</SelectableCollectionCard>
|
||||||
|
|
@ -152,7 +152,7 @@
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="summon-list">
|
<div class="summon-list">
|
||||||
{#each allSummons as summon (summon.id)}
|
{#each allSummons as summon, i (i)}
|
||||||
<SelectableCollectionRow id={summon.id} onClick={() => openSummonDetails(summon)}>
|
<SelectableCollectionRow id={summon.id} onClick={() => openSummonDetails(summon)}>
|
||||||
<CollectionSummonRow {summon} />
|
<CollectionSummonRow {summon} />
|
||||||
</SelectableCollectionRow>
|
</SelectableCollectionRow>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue