diff --git a/packages/svelte/src/internal/client/dom/blocks/svelte-html.js b/packages/svelte/src/internal/client/dom/blocks/svelte-html.js index a1bd8306b51c..dd1b20f36c2b 100644 --- a/packages/svelte/src/internal/client/dom/blocks/svelte-html.js +++ b/packages/svelte/src/internal/client/dom/blocks/svelte-html.js @@ -23,8 +23,8 @@ export function svelte_html(get_attributes) { for (const name in attributes) { const current = (current_setters[name] ??= []); - const idx = current.findIndex(([owner]) => owner === own); - const old = idx === -1 ? null : current.splice(idx, 1)[0][1]; + const index = current.findIndex(([owner]) => owner === own); + const old = index === -1 ? null : current.splice(index, 1)[0][1]; let value = attributes[name]; current.push([own, value]);