diff --git a/plugins/view-resources/src/components/list/ListCategories.svelte b/plugins/view-resources/src/components/list/ListCategories.svelte index e140020bca..11abc4a660 100644 --- a/plugins/view-resources/src/components/list/ListCategories.svelte +++ b/plugins/view-resources/src/components/list/ListCategories.svelte @@ -122,47 +122,45 @@ const dispatch = createEventDispatcher() -{#each categories as category, i} +{#each categories as category, i (category)} {@const items = groupedDocs[category] ?? []} - {#key category} - { - dispatch('dragstart', { - target: e.detail.target, - index: e.detail.index + getInitIndex(categories, i) - }) - }} - {flatHeaders} - {disableHeader} - {props} - {listDiv} - bind:dragItem - /> - {/key} + { + dispatch('dragstart', { + target: e.detail.target, + index: e.detail.index + getInitIndex(categories, i) + }) + }} + {flatHeaders} + {disableHeader} + {props} + {listDiv} + bind:dragItem + /> {/each}