diff --git a/v2/pink-sb/src/lib/DirectoryPicker/DirectoryItem.svelte b/v2/pink-sb/src/lib/DirectoryPicker/DirectoryItem.svelte index 03accdefd..49f031985 100644 --- a/v2/pink-sb/src/lib/DirectoryPicker/DirectoryItem.svelte +++ b/v2/pink-sb/src/lib/DirectoryPicker/DirectoryItem.svelte @@ -37,7 +37,6 @@ {#each directories as { title, fileCount, fullPath, thumbnailUrl, children }, i} - {@const itemId = `${title}-${i}`} {@const hasChildren = !!children?.length} {@const thumb = thumbnailUrl} @@ -50,7 +49,7 @@ dispatch('select', { title, fullPath, hasChildren }); }} use:melt={$item({ - id: itemId, + id: fullPath, hasChildren })} > @@ -64,7 +63,7 @@ />
@@ -102,7 +101,7 @@ {#if children} -
+
{/if}