fix(dashboard): fix crash when changing pages with an open card
This commit is contained in:
parent
b4b7525fc0
commit
3c4de5996c
@ -155,7 +155,7 @@
|
||||
{#if !listLoading && !err}
|
||||
{#if settings && settings.accessibility ? (!settings.accessibility.expandedcards && !settings.accessibility.pagelinks) : true}
|
||||
<Accordion class="my-3" stayOpen>
|
||||
{#each slicedList as item, index}
|
||||
{#each slicedList as item, index (item.id)}
|
||||
<AccordionItem>
|
||||
<CardsHeader {item} slot="header">
|
||||
<div slot="icon">
|
||||
@ -179,7 +179,7 @@
|
||||
{/each}
|
||||
</Accordion>
|
||||
{:else if settings.accessibility.expandedcards}
|
||||
{#each slicedList as item, index}
|
||||
{#each slicedList as item, index (item.id)}
|
||||
<Card class="mb-3">
|
||||
<CardHeader>
|
||||
<CardsHeader {item} slot="header">
|
||||
@ -207,7 +207,7 @@
|
||||
{/each}
|
||||
{:else}
|
||||
<div class="my-3">
|
||||
{#each slicedList as item, index}
|
||||
{#each slicedList as item, index (item.id)}
|
||||
<Card>
|
||||
<Link class="accordion-button collapsed" style="text-decoration: none;" to={getItemLink(item)}>
|
||||
<CardsHeader {item} slot="header">
|
||||
|
Loading…
Reference in New Issue
Block a user