Skip to content

Commit

Permalink
Fix svelte link snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
dani-mp committed Nov 25, 2024
1 parent 78a449a commit 3bc1118
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/adapter-sveltekit/src/hooks/snippet-read.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ export const snippetRead: SnippetReadHook<PluginOptions> = async (
`;
} else if (repeat && !allowText) {
codeText = stripIndent`
{#each ${dotPath(fieldPath)} as link, index (index)}
{#each ${dotPath(fieldPath)} as link (link.key)}
<PrismicLink field={link}>Link</PrismicLink>
{/each}
`;
} else if (repeat && allowText) {
codeText = stripIndent`
{#each ${dotPath(fieldPath)} as link, index (index)}
{#each ${dotPath(fieldPath)} as link (link.key)}
<PrismicLink field={link} />
{/each}
`;
Expand Down

0 comments on commit 3bc1118

Please sign in to comment.