From 3bc1118ab448cec281a6e13502cf6c442db0c222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marti=CC=81n?= Date: Mon, 25 Nov 2024 16:02:51 +0100 Subject: [PATCH] Fix svelte link snippets --- packages/adapter-sveltekit/src/hooks/snippet-read.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/adapter-sveltekit/src/hooks/snippet-read.ts b/packages/adapter-sveltekit/src/hooks/snippet-read.ts index 15583133b..0de45f568 100644 --- a/packages/adapter-sveltekit/src/hooks/snippet-read.ts +++ b/packages/adapter-sveltekit/src/hooks/snippet-read.ts @@ -71,13 +71,13 @@ export const snippetRead: SnippetReadHook = async ( `; } else if (repeat && !allowText) { codeText = stripIndent` - {#each ${dotPath(fieldPath)} as link, index (index)} + {#each ${dotPath(fieldPath)} as link (link.key)} Link {/each} `; } else if (repeat && allowText) { codeText = stripIndent` - {#each ${dotPath(fieldPath)} as link, index (index)} + {#each ${dotPath(fieldPath)} as link (link.key)} {/each} `;