Skip to content

Commit

Permalink
fix: only output the key for each_key_duplicate (#14147)
Browse files Browse the repository at this point in the history
Fixes #14146
  • Loading branch information
wackbyte authored Nov 4, 2024
1 parent 87d83ff commit 57e27ae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/short-lions-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

fix: only output the key for each_key_duplicate
2 changes: 1 addition & 1 deletion packages/svelte/src/internal/client/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function validate_each_keys(collection, key_fn) {
const b = String(i);

/** @type {string | null} */
let k = String(array[i]);
let k = String(key);
if (k.startsWith('[object ')) k = null;

e.each_key_duplicate(a, b, k);
Expand Down

0 comments on commit 57e27ae

Please sign in to comment.